# HG changeset patch # User Oleksandr Gavenko # Date 1612031272 -7200 # Node ID 03f26aaabbfa5ca6a88fc45f7ed235addc37e12e # Parent 5946ac9f14c7e5811b0d6da3cfee644f1a383b77 Moved settings for file local variable to a separate section. diff -r 5946ac9f14c7 -r 03f26aaabbfa .emacs-my --- a/.emacs-my Sat Jan 30 20:26:42 2021 +0200 +++ b/.emacs-my Sat Jan 30 20:27:52 2021 +0200 @@ -741,6 +741,17 @@ (server-start)) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(message "file local variables/ dir local variables") + +(setq enable-dir-local-variables t) + +;; Prompt before evaluating potencially dangerous foreign elisp! +(setq enable-local-variables :safe) +(setq enable-local-eval :maybe) + +;; See also `safe-local-eval-forms' & `safe-local-variable-values'. + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (message "standart/general settings") ;; Try to speed things up, especially in VM. @@ -758,11 +769,6 @@ (setq enable-recursive-minibuffers t) -;; Prompt before evaluating local bits of lisp. This stops people -;; putting things at the end of files which delete all your files! -(setq enable-local-variables :safe - enable-local-eval 1) - (setq kill-whole-line t) ;; Disable because of bug with gettext.el. See