diff --git a/lisp/init-direnv.el b/lisp/init-direnv.el index d35e646cf9..a144f8d4fd 100644 --- a/lisp/init-direnv.el +++ b/lisp/init-direnv.el @@ -3,14 +3,9 @@ ;;; Code: (when (maybe-require-package 'envrc) - (defun sanityinc/maybe-enable-envrc-global-mode () - "Enable `envrc-global-mode' if `direnv' is installed." - (when (executable-find "direnv") - (envrc-global-mode))) - (with-eval-after-load 'envrc (define-key envrc-mode-map (kbd "C-c e") 'envrc-command-map)) - (add-hook 'after-init-hook 'sanityinc/maybe-enable-envrc-global-mode)) + (add-hook 'after-init-hook 'envrc-global-mode)) (provide 'init-direnv)