• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/emacs-92/emacs/lisp/

Lines Matching +defs:hook +defs:on

1 ;;; autorevert.el --- revert buffers when files on disk change
38 ;; whenever the corresponding files have been changed on disk and the
86 ;; The function `turn-on-auto-revert-mode' could be added to any major
87 ;; mode hook to activate Auto-Revert Mode for all buffers in that
91 ;; (add-hook 'c-mode-hook 'turn-on-auto-revert-mode)
108 "Revert individual buffers when files on disk change.
153 (defcustom auto-revert-stop-on-user-input t
186 (defcustom auto-revert-mode-hook nil
190 :type 'hook)
201 (defcustom global-auto-revert-mode-hook nil
204 :type 'hook)
207 "When nil, Global Auto-Revert mode operates only on file-visiting buffers.
228 (defcustom auto-revert-load-hook nil
232 :type 'hook)
248 it should not cause excessive CPU usage on a reasonably fast
250 buffers. CPU usage depends on the version control system."
278 (add-hook 'find-file-hook
287 "Toggle reverting buffer when file on disk changes.
289 With arg, turn Auto Revert mode on if and only if arg is positive.
307 (defun turn-on-auto-revert-mode ()
308 "Turn on Auto-Revert Mode.
311 (add-hook 'c-mode-hook 'turn-on-auto-revert-mode)"
317 "Toggle reverting tail of buffer when file on disk grows.
318 With arg, turn Tail mode on iff arg is positive.
322 whenever the file grows on disk (presumably because some
326 You can edit the buffer and turn this mode off and on again as
341 (add-hook 'before-save-hook (lambda () (auto-revert-tail-mode 0)) nil t)
353 (defun turn-on-auto-revert-tail-mode ()
354 "Turn on Auto-Revert Tail Mode.
357 (add-hook 'my-logfile-mode-hook 'turn-on-auto-revert-tail-mode)"
363 "Revert any buffer when file on disk changes.
365 With arg, turn Auto Revert mode on globally if and only if arg is positive.
445 (vc-find-file-hook)))))
460 (run-mode-hooks 'after-revert-hook)
495 ;; Partition `bufs' into two halves depending on whether or not
507 (not (and auto-revert-stop-on-user-input
535 (run-hooks 'auto-revert-load-hook)