diff options
| author | Davide Masserut | 2022-04-06 11:37:38 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-06 11:38:08 +0200 |
| commit | e32dcc752723cd255622fde73a324bdcb1e90664 (patch) | |
| tree | 5ccc73757ca2bd6f258c8d8e26534762fecab250 | |
| parent | 51a98a92e9f4c821ff838d823ce42ca12a4de4ca (diff) | |
| download | emacs-e32dcc752723cd255622fde73a324bdcb1e90664.tar.gz emacs-e32dcc752723cd255622fde73a324bdcb1e90664.zip | |
Add .bashrc detection to sh-mode
* lisp/progmodes/sh-script.el (sh-mode): Add .bashrc string-match
(bug#54727).
| -rw-r--r-- | lisp/progmodes/sh-script.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 8dc55621438..9151fd0a340 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -1549,7 +1549,7 @@ with your script for an edit-interpret-debug cycle." | |||
| 1549 | ;; Checks that use `buffer-file-name' follow. | 1549 | ;; Checks that use `buffer-file-name' follow. |
| 1550 | ((string-match "\\.m?spec\\'" buffer-file-name) "rpm") | 1550 | ((string-match "\\.m?spec\\'" buffer-file-name) "rpm") |
| 1551 | ((string-match "[.]sh\\>" buffer-file-name) "sh") | 1551 | ((string-match "[.]sh\\>" buffer-file-name) "sh") |
| 1552 | ((string-match "[.]bash\\>" buffer-file-name) "bash") | 1552 | ((string-match "[.]bash\\(rc\\)?\\>" buffer-file-name) "bash") |
| 1553 | ((string-match "[.]ksh\\>" buffer-file-name) "ksh") | 1553 | ((string-match "[.]ksh\\>" buffer-file-name) "ksh") |
| 1554 | ((string-match "[.]mkshrc\\>" buffer-file-name) "mksh") | 1554 | ((string-match "[.]mkshrc\\>" buffer-file-name) "mksh") |
| 1555 | ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") | 1555 | ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") |