[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts
From: |
Glenn Morris |
Subject: |
bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts |
Date: |
Thu, 10 Jul 2014 14:23:11 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Andrew Pennebaker wrote:
> Would be helpful if shell-mode understood that .bashrc*, .profile*, etc.
> are shell scripts. Right now, they are treated as fundamental.
Works for me.
emacs-24.3 -Q .profile -> shell-script
emacs-24.3 -Q .bashrc -> shell-script
C-h v auto-mode-alist
("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode)
("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'"
. sh-mode)
("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'"
. sh-mode)