summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-10-31 10:57:06 +0100
committerAlan Pearce2016-10-31 10:57:06 +0100
commite6df5c84a11e58733ddc32393e144cb60787ab05 (patch)
tree7310783d34e6a43d846176361fc06508d2efcc56
parent606968a957b29edaf37b1dc9dd4bc4aadd951b93 (diff)
downloaddotfiles-e6df5c84a11e58733ddc32393e144cb60787ab05.tar.lz
dotfiles-e6df5c84a11e58733ddc32393e144cb60787ab05.tar.zst
dotfiles-e6df5c84a11e58733ddc32393e144cb60787ab05.zip
Emacs: Open zshrc/zshenv in shell-script-mode
-rw-r--r--tag-emacs/emacs.d/init.org4
1 files changed, 3 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index c803895..cd58c17 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1988,7 +1988,9 @@ Make a shell-script buffer executable after saving it, if it has a shebang.
         #'executable-make-buffer-file-executable-if-script-p)
 
   (use-package sh-script
-    :mode (("\\.zsh\\'" . shell-script-mode))
+    :mode (("\\.zsh\\'" . shell-script-mode)
+           ("zshenv\\'" . shell-script-mode)
+           ("zshrc\\'"  . shell-script-mode))
     :config (setq sh-shell-file "/usr/bin/env zsh"
                   sh-indentation 2
                   sh-basic-offset 2))