From e6df5c84a11e58733ddc32393e144cb60787ab05 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 31 Oct 2016 10:57:06 +0100 Subject: Emacs: Open zshrc/zshenv in shell-script-mode --- tag-emacs/emacs.d/init.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index c803895d..cd58c176 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)) -- cgit 1.4.1