diff options
author | David Morgan <djm_uk@protonmail.com> | 2021-09-23 15:52:59 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2021-09-23 15:52:59 +0100 |
commit | 3a1d22524c4893906aae840f3d28f8e047ec5ee1 (patch) | |
tree | 2c46923594f2be7e322829e7488433094c91c95a /.emacs.d/lisp | |
parent | 0c5ce2b825b15c7f77ff09f6ed48a7762b298142 (diff) | |
download | dotfiles-3a1d22524c4893906aae840f3d28f8e047ec5ee1.tar.gz |
Replace lambda with named function
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-clojure.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-clojure.el b/.emacs.d/lisp/init-clojure.el index 855d5e1..215b52c 100644 --- a/.emacs.d/lisp/init-clojure.el +++ b/.emacs.d/lisp/init-clojure.el @@ -22,11 +22,11 @@ :config (cljr-add-keybindings-with-prefix "C-c C-m") (setq cljr-suppress-no-project-warning t) + (defun clj-refactor-hook-fn () + (clj-refactor-mode 1) + (yas-minor-mode 1)) :hook - (clojure-mode . - (lambda () - (clj-refactor-mode 1) - (yas-minor-mode 1)))) + (clojure-mode . clj-refactor-hook-fn)) (use-package cider :diminish |