diff options
author | Case Duckworth | 2021-05-28 20:45:53 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-28 20:45:53 -0500 |
commit | a712b76ae931847c95a5d9e4ee4810ad6e13dbe0 (patch) | |
tree | 536fc8a01d4447e8280253197e20b745321cde32 | |
parent | Fix mode-line flashing (diff) | |
download | emacs-a712b76ae931847c95a5d9e4ee4810ad6e13dbe0.tar.gz emacs-a712b76ae931847c95a5d9e4ee4810ad6e13dbe0.zip |
Move defun into hook definition
-rw-r--r-- | init.el | 7 |
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) |