Emacs: Open zshrc/zshenv in shell-script-mode
Alan Pearce alan@alanpearce.uk
Mon, 31 Oct 2016 10:57:06 +0100
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-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))