Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1a4914f3
Commit
1a4914f3
authored
Aug 15, 2002
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use find-file-hook instead of find-file-hooks.
parent
06772363
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
lisp/elide-head.el
lisp/elide-head.el
+2
-2
lisp/font-core.el
lisp/font-core.el
+1
-1
lisp/obsolete/hilit19.el
lisp/obsolete/hilit19.el
+1
-1
lisp/play/meese.el
lisp/play/meese.el
+1
-1
lisp/saveplace.el
lisp/saveplace.el
+1
-1
lisp/smerge-mode.el
lisp/smerge-mode.el
+2
-2
lisp/uniquify.el
lisp/uniquify.el
+1
-1
lisp/which-func.el
lisp/which-func.el
+2
-2
No files found.
lisp/elide-head.el
View file @
1a4914f3
...
...
@@ -33,7 +33,7 @@
;; elision.
;; You might add `elide-head' to appropriate major mode hooks or to
;; `find-file-hook
s
'. Please do not do this in site init files. If
;; `find-file-hook'. Please do not do this in site init files. If
;; you do, information may be hidden from users who don't know it
;; already.
...
...
@@ -78,7 +78,7 @@ cdr."
The header is made invisible with an overlay. With a prefix arg, show
an elided material again.
This is suitable as an entry on `find-file-hook
s
' or appropriate mode hooks."
This is suitable as an entry on `find-file-hook' or appropriate mode hooks."
(
interactive
"P"
)
(
if
arg
(
elide-head-show
)
...
...
lisp/font-core.el
View file @
1a4914f3
...
...
@@ -290,7 +290,7 @@ Sets various variables using `font-lock-defaults' (or, if nil, using
;; hook is run, the major mode is in the process of being changed and we do not
;; know what the final major mode will be. So, `font-lock-change-major-mode'
;; only (a) notes the name of the current buffer, and (b) adds our function
;; `turn-on-font-lock-if-enabled' to the hook variables `find-file-hook
s
' and
;; `turn-on-font-lock-if-enabled' to the hook variables `find-file-hook' and
;; `post-command-hook' (for buffers that are not visiting files). By the time
;; the functions on the first of these hooks to be run are run, the new major
;; mode is assumed to be in place. This way we get a Font Lock function run
...
...
lisp/obsolete/hilit19.el
View file @
1a4914f3
...
...
@@ -956,7 +956,7 @@ the entire buffer is forced."
(
global-set-key
[?\C-\S-l]
'hilit-repaint-command
)
(
add-hook
'find-file-hook
s
'hilit-find-file-hook
t
)
(
add-hook
'find-file-hook
'hilit-find-file-hook
t
)
(
eval-when-compile
(
require
'gnus
))
; no compilation gripes
...
...
lisp/play/meese.el
View file @
1a4914f3
...
...
@@ -31,7 +31,7 @@
(
insert-file-contents
buffer-file-name
t
))
(
rename-buffer
(
file-name-nondirectory
buffer-file-name
))))))
(
add-hook
'find-file-hook
s
'protect-innocence-hook
)
(
add-hook
'find-file-hook
'protect-innocence-hook
)
(
provide
'meese
)
;;; meese.el ends here
lisp/saveplace.el
View file @
1a4914f3
...
...
@@ -230,7 +230,7 @@ To save places automatically in all files, put this in your `.emacs' file:
(
if
save-place-loaded
(
save-place-alist-to-file
)))
(
add-hook
'find-file-hook
s
'save-place-find-file-hook
t
)
(
add-hook
'find-file-hook
'save-place-find-file-hook
t
)
(
add-hook
'kill-emacs-hook
'save-place-kill-emacs-hook
)
...
...
lisp/smerge-mode.el
View file @
1a4914f3
...
...
@@ -4,7 +4,7 @@
;; Author: Stefan Monnier <monnier@cs.yale.edu>
;; Keywords: merge diff3 cvs conflict
;; Revision: $Id: smerge-mode.el,v 1.1
4
2001/
07/31
0
8
:2
8:43 g
er
d
Exp $
;; Revision: $Id: smerge-mode.el,v 1.1
5
2001/
11/15
0
1
:2
5:35 monni
er Exp $
;; This file is part of GNU Emacs.
...
...
@@ -38,7 +38,7 @@
;; (goto-char (point-min))
;; (when (re-search-forward "^<<<<<<< " nil t)
;; (smerge-mode 1))))
;; (add-hook 'find-file-hook
s
'sm-try-smerge t)
;; (add-hook 'find-file-hook 'sm-try-smerge t)
;;; Todo:
...
...
lisp/uniquify.el
View file @
1a4914f3
...
...
@@ -352,7 +352,7 @@ in `uniquify-list-buffers-directory-modes', otherwise returns nil."
;; generate-new-buffer, which is called only by Lisp functions
;; create-file-buffer and rename-uniquely. Rename-uniquely generally
;; isn't used for buffers visiting files, so it's sufficient to hook
;; rename-buffer and create-file-buffer. (Setting find-file-hook
s
isn't
;; rename-buffer and create-file-buffer. (Setting find-file-hook isn't
;; sufficient.)
(
defadvice
rename-buffer
(
after
rename-buffer-uniquify
activate
)
...
...
lisp/which-func.el
View file @
1a4914f3
...
...
@@ -58,7 +58,7 @@
;; Peter Eisenhauer <pipe@fzi.de>
;; Bug fixing in case nested indexes.
;; Terry Tateyama <ttt@ursa0.cs.utah.edu>
;; Suggestion to use find-file-hook
s
for first imenu
;; Suggestion to use find-file-hook for first imenu
;; index building.
;;; Code:
...
...
@@ -131,7 +131,7 @@ This makes a difference only if `which-function-mode' is non-nil.")
(
make-variable-buffer-local
'which-func-mode
)
;;(put 'which-func-mode 'permanent-local t)
(
add-hook
'find-file-hook
s
'which-func-ff-hook
t
)
(
add-hook
'find-file-hook
'which-func-ff-hook
t
)
(
defun
which-func-ff-hook
()
"File find hook for Which Function mode.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment