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