[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25217: [PATCH] Enable sh-mode zshrc
From: |
Alan Third |
Subject: |
bug#25217: [PATCH] Enable sh-mode zshrc |
Date: |
Mon, 19 Dec 2016 09:31:22 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) |
Michihito Shigemura <m_shigemura@shigemk2.com> writes:
> * 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..ac5fb19 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\\)?\\>" buffer-file-name) "zsh")
> ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh")
> (t sh-shell-file))
> nil nil)
Hi, looks good.
Is it worth adding support for .zshenv as well?
--
Alan Third
- bug#25217: [PATCH] Enable sh-mode zshrc, Michihito Shigemura, 2016/12/17
- bug#25217: [PATCH] Enable sh-mode zshrc,
Alan Third <=
- bug#25217: (no subject), Michihito Shigemura, 2016/12/19
- bug#25217: [PATCH] Enable sh-mode zshrc, Michihito Shigemura, 2016/12/20
- bug#25217:, Michihito Shigemura, 2016/12/22
- bug#25217:, Michihito Shigemura, 2016/12/24
- bug#25217: (no subject), Michihito Shigemura, 2016/12/27