diff options
| author | Richard M. Stallman | 1996-01-05 02:34:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-05 02:34:37 +0000 |
| commit | d1194c856c5e8187af4176a924e1df4b24d34e9f (patch) | |
| tree | 43d1cdd079a4401378e1f94ab3fe0889533f44d0 | |
| parent | fc30803c6d1efbe99444da6c6d585cfe7105f13e (diff) | |
| download | emacs-d1194c856c5e8187af4176a924e1df4b24d34e9f.tar.gz emacs-d1194c856c5e8187af4176a924e1df4b24d34e9f.zip | |
(interpreter-mode-alist): Add most shells, with sh-mode.
Add tail, more, less, pg with text-mode.
(auto-mode-alist): Recognize extensions that indicate
shell scripts, as well as common init file names.
| -rw-r--r-- | lisp/files.el | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index d4bf199b1ae..e512b75adc5 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -940,6 +940,10 @@ run `normal-mode' explicitly." | |||
| 940 | ("ChangeLog.[0-9]+\\'" . change-log-mode) | 940 | ("ChangeLog.[0-9]+\\'" . change-log-mode) |
| 941 | ("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode) | 941 | ("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode) |
| 942 | ("\\.scm\\.[0-9]*\\'" . scheme-mode) | 942 | ("\\.scm\\.[0-9]*\\'" . scheme-mode) |
| 943 | ("\\.c?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) | ||
| 944 | ("/\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . sh-mode) | ||
| 945 | ("/\\.\\(bash_logout\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode) | ||
| 946 | ("/\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode) | ||
| 943 | ;;; The following should come after the ChangeLog pattern | 947 | ;;; The following should come after the ChangeLog pattern |
| 944 | ;;; for the sake of ChangeLog.1, etc. | 948 | ;;; for the sake of ChangeLog.1, etc. |
| 945 | ;;; and after the .scm.[0-9] pattern too. | 949 | ;;; and after the .scm.[0-9] pattern too. |
| @@ -998,7 +1002,28 @@ REGEXP and search the list again for another match.") | |||
| 998 | ("awk" . awk-mode) | 1002 | ("awk" . awk-mode) |
| 999 | ("nawk" . awk-mode) | 1003 | ("nawk" . awk-mode) |
| 1000 | ("gawk" . awk-mode) | 1004 | ("gawk" . awk-mode) |
| 1001 | ("scm" . scheme-mode)) | 1005 | ("scm" . scheme-mode) |
| 1006 | ("ash" . sh-mode) | ||
| 1007 | ("bash" . sh-mode) | ||
| 1008 | ("csh" . sh-mode) | ||
| 1009 | ("dtksh" . sh-mode) | ||
| 1010 | ("es" . sh-mode) | ||
| 1011 | ("itcsh" . sh-mode) | ||
| 1012 | ("jsh" . sh-mode) | ||
| 1013 | ("ksh" . sh-mode) | ||
| 1014 | ("oash" . sh-mode) | ||
| 1015 | ("pdksh" . sh-mode) | ||
| 1016 | ("rc" . sh-mode) | ||
| 1017 | ("sh" . sh-mode) | ||
| 1018 | ("sh5" . sh-mode) | ||
| 1019 | ("tcsh" . sh-mode) | ||
| 1020 | ("wksh" . sh-mode) | ||
| 1021 | ("wsh" . sh-mode) | ||
| 1022 | ("zsh" . sh-mode) | ||
| 1023 | ("tail" . text-mode) | ||
| 1024 | ("more" . text-mode) | ||
| 1025 | ("less" . text-mode) | ||
| 1026 | ("pg" . text-mode)) | ||
| 1002 | "Alist mapping interpreter names to major modes. | 1027 | "Alist mapping interpreter names to major modes. |
| 1003 | This alist applies to files whose first line starts with `#!'. | 1028 | This alist applies to files whose first line starts with `#!'. |
| 1004 | Each element looks like (INTERPRETER . MODE). | 1029 | Each element looks like (INTERPRETER . MODE). |