[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a8a24b5: Add zshrc and zshenv detection to sh-mode
From: |
Alan Third |
Subject: |
[Emacs-diffs] master a8a24b5: Add zshrc and zshenv detection to sh-mode (bug#25217) |
Date: |
Sun, 25 Dec 2016 19:52:35 +0000 (UTC) |
branch: master
commit a8a24b5be7f8cb6741f28000ae34c5b39ad9644e
Author: Michihito Shigemura <address@hidden>
Commit: Alan Third <address@hidden>
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
---
lisp/progmodes/sh-script.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 5d362e4..a2c869d 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master a8a24b5: Add zshrc and zshenv detection to sh-mode (bug#25217),
Alan Third <=