From 3bd07eab7df41449c9e366e8b5d411beff2e5e00 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Fri, 14 May 2021 01:13:35 -0500 Subject: [PATCH] Add ignore option to risky locals --- custom.el | 7 ++++--- settings.org | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/custom.el b/custom.el index 116096d..9338451 100644 --- a/custom.el +++ b/custom.el @@ -69,8 +69,7 @@ '(ibuffer-show-empty-filter-groups nil) '(iedit-toggle-key-default - "M-]" - t) + "M-]") '(inhibit-startup-screen t) '(kill-ring-max 500) '(magit-status-sections-hook @@ -191,7 +190,9 @@ '(python-check-command "flake8") '(reb-re-syntax 'string) '(safe-local-variable-values - '((project-venv))) + '((before-save-hook + elpy-yapf-fix-code) + (project-venv))) '(scroll-bar-mode nil) '(sml/theme 'atom-one-dark) '(tab-width 4) diff --git a/settings.org b/settings.org index 5c0186a..472a4fd 100644 --- a/settings.org +++ b/settings.org @@ -2,6 +2,10 @@ #+begin_src emacs-lisp (setq after-settings-load-hooks (list t)) #+end_src +* Local vars +#+begin_src emacs-lisp + (advice-add 'risky-local-variable-p :override #'ignore) +#+end_src * Editing ** Enable disabled commands #+begin_src emacs-lisp