summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-28 20:45:53 -0500
committerCase Duckworth2021-05-28 20:45:53 -0500
commita712b76ae931847c95a5d9e4ee4810ad6e13dbe0 (patch)
tree536fc8a01d4447e8280253197e20b745321cde32
parentFix mode-line flashing (diff)
downloademacs-a712b76ae931847c95a5d9e4ee4810ad6e13dbe0.tar.gz
emacs-a712b76ae931847c95a5d9e4ee4810ad6e13dbe0.zip
Move defun into hook definition
-rw-r--r--init.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/init.el b/init.el index b6e73ba..4c3bcdb 100644 --- a/init.el +++ b/init.el
@@ -182,10 +182,9 @@
182 eval-expression-print-level nil 182 eval-expression-print-level nil
183 lisp-indent-function #'lisp-indent-function) 183 lisp-indent-function #'lisp-indent-function)
184 184
185 (defun acdw/enforce-lexical-binding () 185 (add-hook 'emacs-lisp-mode-hook
186 (setq lexical-binding t)) 186 (defun emacs-lisp@enforce-lexical-binding ()
187 187 (setq lexical-binding t)))
188 (add-hook 'emacs-lisp-mode-hook #'acdw/enforce-lexical-binding)
189 188
190 (defun acdw/eval-region-or-buffer () 189 (defun acdw/eval-region-or-buffer ()
191 (interactive) 190 (interactive)