From: Glenn Morris Date: Fri, 23 Aug 2013 18:58:41 +0000 (-0400) Subject: * lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1686^2~137 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d85dc347ccdffc32d3dd6fa163ea94a860540de;p=emacs.git * lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d3b09c3449..b47258330f1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2013-08-23 Glenn Morris + * files.el (auto-mode-alist): Use sh-mode for .bash_history. + * files.el (interpreter-mode-alist): Use tcl-mode for expect scripts. * files.el (create-file-buffer): If the result would begin with diff --git a/lisp/files.el b/lisp/files.el index 04ea47fa6ef..f9ff3c936bd 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2275,8 +2275,8 @@ since only a single case-insensitive search through the alist is made." ("\\.scm\\.[0-9]*\\'" . scheme-mode) ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) ("\\.bash\\'" . sh-mode) - ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . sh-mode) - ("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode) + ("\\(/\\|\\`\\)\\.\\(bash_\\(profile\\|history\\|log\\(in\\|out\\)\\)\\|z?log\\(in\\|out\\)\\)\\'" . sh-mode) + ("\\(/\\|\\`\\)\\.\\(shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode) ("\\(/\\|\\`\\)\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode) ("\\.m?spec\\'" . sh-mode) ("\\.m[mes]\\'" . nroff-mode)