emacs: hack-local-variables-hook stuff

master
an 2020-03-16 21:29:43 -04:00
parent 51dd5d6031
commit 73eff57099
2 changed files with 6 additions and 0 deletions

View File

@ -53,4 +53,7 @@
((eq selection 'screen-line) "ʌ")
((eq selection 'block) "Λ"))))
(defun agw-after-local-vars ()
(unless indent-tabs-mode (smart-tabs-mode 0)))
;; EOF

View File

@ -52,6 +52,9 @@
(add-hook 'prog-mode-hook #'subword-mode)
(add-hook 'prog-mode-hook #'agw-prog-mode)
;; `hack-local-variables'
(add-hook 'hack-local-variables-hook #'agw-after-local-vars)
;; macros
(add-hook 'emacs-lisp-mode-hook #'agw-fp-mode)
(add-hook 'lisp-mode-hook #'agw-fp-mode)