Skip to content

Commit

Permalink
Merge pull request #80 from accelbread/fix-global-envrc
Browse files Browse the repository at this point in the history
Fix `envrc-global-mode` with absolute direnv path
  • Loading branch information
purcell authored May 17, 2024
2 parents f0d809d + 7d0c942 commit 4405f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envrc.el
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ e.g. (define-key envrc-mode-map (kbd \"C-c e\") \\='envrc-command-map)"
;;;###autoload
(define-globalized-minor-mode envrc-global-mode envrc-mode
(lambda () (when (and (not (minibufferp)) (not (file-remote-p default-directory))
(executable-find "direnv"))
(executable-find envrc-direnv-executable))
(envrc-mode 1))))

(defface envrc-mode-line-on-face '((t :inherit success))
Expand Down

0 comments on commit 4405f6e

Please sign in to comment.