Skip to content

Commit

Permalink
include {compilation,comint}-mode in direnv-non-file-modes by default (
Browse files Browse the repository at this point in the history
  • Loading branch information
wbolster authored Feb 26, 2020
1 parent fd0b6bb commit 1bb1045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ history
`#55 <https://github.com/wbolster/emacs-direnv/pull/55>`_
* use base buffer mode directories for indirect buffers
`#51 <https://github.com/wbolster/emacs-direnv/pull/51>`_
* include ``comint-mode`` and ``compilation-mode`` in
``direnv-non-file-modes`` by default
`#58 <https://github.com/wbolster/emacs-direnv/pull/58>`_

* 2.0.0 (2019-05-11)

Expand Down
5 changes: 3 additions & 2 deletions direnv.el
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1bb1045

Please # to comment.