diff --git a/README.rst b/README.rst index faa4c18..f3958c0 100644 --- a/README.rst +++ b/README.rst @@ -220,6 +220,9 @@ history `#55 `_ * use base buffer mode directories for indirect buffers `#51 `_ + * include ``comint-mode`` and ``compilation-mode`` in + ``direnv-non-file-modes`` by default + `#58 `_ * 2.0.0 (2019-05-11) diff --git a/direnv.el b/direnv.el index 489e39d..45302e4 100644 --- a/direnv.el +++ b/direnv.el @@ -63,8 +63,9 @@ usually results in coloured output." :group 'direnv :type 'boolean) -(defcustom direnv-non-file-modes '(eshell-mode dired-mode magit-mode) - "List of modes where direnv will update even if the buffer has no file. +(defcustom direnv-non-file-modes + '(comint-mode compilation-mode dired-mode eshell-mode magit-mode) + "Major modes where direnv will update even if the buffer is not a file. In these modes, or modes derived from them, direnv will use `default-directory'