all repos — nixfiles @ e6df5c84a11e58733ddc32393e144cb60787ab05

System and user configuration, managed by nix and home-manager

Emacs: Open zshrc/zshenv in shell-script-mode
Alan Pearce alan@alanpearce.uk
Mon, 31 Oct 2016 10:57:06 +0100
commit

e6df5c84a11e58733ddc32393e144cb60787ab05

parent

606968a957b29edaf37b1dc9dd4bc4aadd951b93

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1988,7 +1988,9 @@ (add-hook 'after-save-hook         #'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))