From: Michihito Shigemura Date: Tue, 20 Dec 2016 12:12:35 +0000 (+0900) Subject: Add zshrc and zshenv detection to sh-mode (bug#25217) X-Git-Tag: emacs-26.0.90~1011 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a8a24b5be7f8cb6741f28000ae34c5b39ad9644e;p=emacs.git Add zshrc and zshenv detection to sh-mode (bug#25217) * lisp/progmodes/sh-script.el (sh-mode): Add zsh string-match Copyright-paperwork-exempt: yes --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 5d362e42c30..a2c869de879 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1683,6 +1683,7 @@ with your script for an edit-interpret-debug cycle." ((string-match "[.]bash\\>" buffer-file-name) "bash") ((string-match "[.]ksh\\>" buffer-file-name) "ksh") ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") + ((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh") ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh") (t sh-shell-file)) nil nil)