aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDave Love2003-10-06 16:29:50 +0000
committerDave Love2003-10-06 16:29:50 +0000
commit564af25832085da415c6e697f57181f4f5a15a4f (patch)
tree632ea20b667e36a5985bc6049c2c3dc10ce09e36 /lisp
parent9556530476d07c11806e6c131b02e911a4c9bc1d (diff)
downloademacs-564af25832085da415c6e697f57181f4f5a15a4f.tar.gz
emacs-564af25832085da415c6e697f57181f4f5a15a4f.zip
(find-file-hook): Customize.
(auto-mode-alist): Add .stk, .ss, .sch, .orig.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/files.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el
index fc756689309..2b80f591343 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -42,7 +42,7 @@
42(defcustom delete-auto-save-files t 42(defcustom delete-auto-save-files t
43 "*Non-nil means delete auto-save file when a buffer is saved or killed. 43 "*Non-nil means delete auto-save file when a buffer is saved or killed.
44 44
45Note that auto-save file will not be deleted if the buffer is killed 45Note that the auto-save file will not be deleted if the buffer is killed
46when it has unsaved changes." 46when it has unsaved changes."
47 :type 'boolean 47 :type 'boolean
48 :group 'auto-save) 48 :group 'auto-save)
@@ -355,10 +355,14 @@ The functions are called in the order given until one of them returns non-nil.")
355 355
356;;;It is not useful to make this a local variable. 356;;;It is not useful to make this a local variable.
357;;;(put 'find-file-hooks 'permanent-local t) 357;;;(put 'find-file-hooks 'permanent-local t)
358(defvar find-file-hook nil 358(defcustom find-file-hook nil
359 "List of functions to be called after a buffer is loaded from a file. 359 "List of functions to be called after a buffer is loaded from a file.
360The buffer's local variables (if any) will have been processed before the 360The buffer's local variables (if any) will have been processed before the
361functions are called.") 361functions are called."
362 :group 'find-file
363 :type 'hook
364 :options '(auto-insert)
365 :version "21.4")
362(defvaralias 'find-file-hooks 'find-file-hook) 366(defvaralias 'find-file-hooks 'find-file-hook)
363(make-obsolete-variable 'find-file-hooks 'find-file-hook "21.4") 367(make-obsolete-variable 'find-file-hooks 'find-file-hook "21.4")
364 368
@@ -1601,7 +1605,7 @@ in that case, this function acts as if `enable-local-variables' were t."
1601 ("\\.ltx\\'" . latex-mode) 1605 ("\\.ltx\\'" . latex-mode)
1602 ("\\.dtx\\'" . doctex-mode) 1606 ("\\.dtx\\'" . doctex-mode)
1603 ("\\.el\\'" . emacs-lisp-mode) 1607 ("\\.el\\'" . emacs-lisp-mode)
1604 ("\\.scm\\'" . scheme-mode) 1608 ("\\.scm\\|\\.stk\\|\\.ss\\|\\.sch\\'" . scheme-mode)
1605 ("\\.l\\'" . lisp-mode) 1609 ("\\.l\\'" . lisp-mode)
1606 ("\\.lisp\\'" . lisp-mode) 1610 ("\\.lisp\\'" . lisp-mode)
1607 ("\\.f\\'" . fortran-mode) 1611 ("\\.f\\'" . fortran-mode)
@@ -1717,6 +1721,7 @@ in that case, this function acts as if `enable-local-variables' were t."
1717 ("\\.[1-9]\\'" . nroff-mode) 1721 ("\\.[1-9]\\'" . nroff-mode)
1718 ("\\.g\\'" . antlr-mode) 1722 ("\\.g\\'" . antlr-mode)
1719 ("\\.ses\\'" . ses-mode) 1723 ("\\.ses\\'" . ses-mode)
1724 ("\\.orig\\'" nil t) ; from patch
1720 ("\\.in\\'" nil t))) 1725 ("\\.in\\'" nil t)))
1721 "Alist of filename patterns vs corresponding major mode functions. 1726 "Alist of filename patterns vs corresponding major mode functions.
1722Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). 1727Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).