From 5e067c5fbd463649eb34179b4f33d691e6dece0c Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 9 Mar 2021 10:26:04 -0500 Subject: [PATCH] Load .env files in shell-script-mode --- emacs/.emacs.d/config/init-direnv.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/.emacs.d/config/init-direnv.el b/emacs/.emacs.d/config/init-direnv.el index 805a61a..6b3f7f7 100644 --- a/emacs/.emacs.d/config/init-direnv.el +++ b/emacs/.emacs.d/config/init-direnv.el @@ -2,6 +2,8 @@ (use-package direnv :if (executable-find "direnv") :defer 2 + :init + (add-to-list 'auto-mode-alist '("\\.env\\'" . shell-script-mode)) :config (direnv-mode) (add-hook 'eshell-mode-hook #'direnv-update-directory-environment)