Variable: find-file-hook

find-file-hook is a customizable variable defined in files.el.gz.

Value

(tramp-set-connection-local-variables-for-buffer
 git-commit-setup-check-buffer
 generic-mode-find-file-hook
 mode-local-post-major-mode-change
 gdb-find-file-hook
 ange-ftp-set-buffer-mode
 auto-revert-find-file-function
 url-handlers-set-buffer-mode
 epa-file-find-file-hook
 vc-refresh-state
 cvs-insert-visited-file)

Documentation

List of functions to be called after a buffer is loaded from a file.

The buffer's local variables (if any) will have been processed before the functions are called. This includes directory-local variables, if any, for the file's directory.

This variable was added, or its default value changed, in Emacs 22.1.

View in manual

Probably introduced at or before Emacs version 15.

Aliases

find-file-hooks (obsolete since 22.1)

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom find-file-hook nil
  "List of functions to be called after a buffer is loaded from a file.
The buffer's local variables (if any) will have been processed before the
functions are called.  This includes directory-local variables, if any,
for the file's directory."
  :group 'find-file
  :type 'hook
  :options '(auto-insert)
  :version "22.1")