GNU bug report logs - #25217
[PATCH] Enable sh-mode zshrc

Previous Next

Package: emacs;

Reported by: Michihito Shigemura <m_shigemura <at> shigemk2.com>

Date: Sat, 17 Dec 2016 17:04:02 UTC

Severity: minor

Tags: patch

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 25217 <at> debbugs.gnu.org (full text, mbox):

From: Michihito Shigemura <m_shigemura <at> shigemk2.com>
To: 25217 <at> debbugs.gnu.org
Cc: Michihito Shigemura <m_shigemura <at> shigemk2.com>
Subject: [PATCH] Enable sh-mode zshrc
Date: Tue, 20 Dec 2016 21:12:35 +0900
* lisp/progmodes/sh-script.el (sh-mode):
Add zsh string-match
---
 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 @@ sh-mode
          ((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)
-- 
2.9.3





This bug report was last modified 8 years and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.