Variable: safe-local-eval-forms
safe-local-eval-forms is a customizable variable defined in
files.el.gz.
Value
((add-hook 'write-file-hooks 'time-stamp)
(add-hook 'write-file-functions 'time-stamp)
(add-hook 'before-save-hook 'time-stamp nil t)
(add-hook 'before-save-hook 'delete-trailing-whitespace nil t))
Documentation
Expressions that are considered safe in an eval: local variable.
Add expressions to this list if you want Emacs to evaluate them, when
they appear in an eval local variable specification, without first
asking you for confirmation.
This variable was added, or its default value changed, in Emacs 24.1.
Probably introduced at or before Emacs version 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom safe-local-eval-forms
;; This should be here at least as long as Emacs supports write-file-hooks.
'((add-hook 'write-file-hooks 'time-stamp)
(add-hook 'write-file-functions 'time-stamp)
(add-hook 'before-save-hook 'time-stamp nil t)
(add-hook 'before-save-hook 'delete-trailing-whitespace nil t))
"Expressions that are considered safe in an `eval:' local variable.
Add expressions to this list if you want Emacs to evaluate them, when
they appear in an `eval' local variable specification, without first
asking you for confirmation."
:risky t
:group 'find-file
:version "24.1" ; added write-file-hooks
:type '(repeat sexp))