Variable: generic-find-file-regexp
generic-find-file-regexp is a customizable variable defined in
generic-x.el.gz.
Value
"^#"
Documentation
Regular expression used by generic-mode-find-file-hook.
Files in fundamental mode whose first few lines contain a match
for this regexp, should be put into Default-Generic mode instead.
The number of lines tested for the matches is specified by the
value of the variable generic-lines-to-scan, which see.
Source Code
;; Defined in /usr/src/emacs/lisp/generic-x.el.gz
(defcustom generic-find-file-regexp "^#"
"Regular expression used by `generic-mode-find-file-hook'.
Files in fundamental mode whose first few lines contain a match
for this regexp, should be put into Default-Generic mode instead.
The number of lines tested for the matches is specified by the
value of the variable `generic-lines-to-scan', which see."
:type 'regexp)