about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-12 17:57:06 -0500
committerCase Duckworth2021-04-12 17:57:06 -0500
commit59c229a35a52fab8c6292d84ed8617cafa47d012 (patch)
treef9401b49dc59470fdb51d96013db0980ffa9512e
parentSet `initial-major-mode' to `emacs-lisp-mode' (diff)
downloademacs-59c229a35a52fab8c6292d84ed8617cafa47d012.tar.gz
emacs-59c229a35a52fab8c6292d84ed8617cafa47d012.zip
Fix lispy modes hooks
-rw-r--r--init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.el b/init.el index 2fcd564..be2b58f 100644 --- a/init.el +++ b/init.el
@@ -740,13 +740,13 @@ if ripgrep is installed, otherwise `consult-grep'."
740 740
741(setup (:straight paren-face) 741(setup (:straight paren-face)
742 (dolist (mode lispy-modes) 742 (dolist (mode lispy-modes)
743 (:hook-into mode))) 743 (add-hook (intern (concat (symbol-name mode) "-hook")) #'paren-face-mode)))
744 744
745(setup (:straight paredit) 745(setup (:straight paredit)
746 (autoload 'enable-paredit-mode "paredit" nil t) 746 (autoload 'enable-paredit-mode "paredit" nil t)
747 747
748 (dolist (mode lispy-modes) 748 (dolist (mode lispy-modes)
749 (:hook-into mode)) 749 (add-hook (intern (concat (symbol-name mode) "-hook")) #'enable-paredit-mode))
750 750
751 (defun paredit-disable-electric-pair-local-mode () 751 (defun paredit-disable-electric-pair-local-mode ()
752 "Disable `electric-pair-local-mode' when `paredit-mode' is enabled." 752 "Disable `electric-pair-local-mode' when `paredit-mode' is enabled."