Mercurial > emacs
comparison lisp/files.el @ 14025:c73d14ef6a6a
(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.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 05 Jan 1996 02:34:37 +0000 |
parents | ad74bc8e877f |
children | 271075f54794 |
comparison
equal
deleted
inserted
replaced
14024:8a10a3485eef | 14025:c73d14ef6a6a |
---|---|
938 ("change.log\\'" . change-log-mode) | 938 ("change.log\\'" . change-log-mode) |
939 ("changelo\\'" . change-log-mode) | 939 ("changelo\\'" . change-log-mode) |
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. |
946 ("\\.[12345678]\\'" . nroff-mode) | 950 ("\\.[12345678]\\'" . nroff-mode) |
947 ("\\.TeX\\'" . tex-mode) | 951 ("\\.TeX\\'" . tex-mode) |
996 ("tcl" . tcl-mode) | 1000 ("tcl" . tcl-mode) |
997 ("tclsh" . tcl-mode) | 1001 ("tclsh" . tcl-mode) |
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). |
1005 The car of each element is compared with | 1030 The car of each element is compared with |
1006 the name of the interpreter specified in the first line. | 1031 the name of the interpreter specified in the first line. |