Variable: generic-use-find-file-hook

generic-use-find-file-hook is a customizable variable defined in generic-x.el.gz.

Value

t

Documentation

If non-nil, add a hook to enter default-generic-mode automatically.

This is done if the first few lines of a file in fundamental mode start with a hash comment character.

Source Code

;; Defined in /usr/src/emacs/lisp/generic-x.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Default-Generic mode
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defcustom generic-use-find-file-hook t
  "If non-nil, add a hook to enter `default-generic-mode' automatically.
This is done if the first few lines of a file in fundamental mode
start with a hash comment character."
  :type  'boolean)