diff options
| author | Michihito Shigemura | 2016-12-20 21:12:35 +0900 |
|---|---|---|
| committer | Alan Third | 2016-12-25 19:51:53 +0000 |
| commit | a8a24b5be7f8cb6741f28000ae34c5b39ad9644e (patch) | |
| tree | b798e9f6d21a89eea78ea3e5114275b031efed1e /lisp | |
| parent | e135b8c7f95e6f387f521bc6f78ba8da281227f3 (diff) | |
| download | emacs-a8a24b5be7f8cb6741f28000ae34c5b39ad9644e.tar.gz emacs-a8a24b5be7f8cb6741f28000ae34c5b39ad9644e.zip | |
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
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/sh-script.el | 1 |
1 files changed, 1 insertions, 0 deletions
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." | |||
| 1683 | ((string-match "[.]bash\\>" buffer-file-name) "bash") | 1683 | ((string-match "[.]bash\\>" buffer-file-name) "bash") |
| 1684 | ((string-match "[.]ksh\\>" buffer-file-name) "ksh") | 1684 | ((string-match "[.]ksh\\>" buffer-file-name) "ksh") |
| 1685 | ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") | 1685 | ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") |
| 1686 | ((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh") | ||
| 1686 | ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh") | 1687 | ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh") |
| 1687 | (t sh-shell-file)) | 1688 | (t sh-shell-file)) |
| 1688 | nil nil) | 1689 | nil nil) |