all repos — nixfiles @ 85aed2343af26b278eb8254846554881f8e35330

System and user configuration, managed by nix and home-manager

emacs: sest up evil-embrace hooks more nicely
Alan Pearce alan@alanpearce.eu
Fri, 24 Mar 2023 07:27:44 +0100
commit

85aed2343af26b278eb8254846554881f8e35330

parent

0c6a0388c832b33cefd1e62676a8f14cfe8bbf21

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -418,14 +418,14 @@ 
 (use-package evil-embrace
   :after evil-surround
+  :ghook ('LaTex-mode-hook #'embrace-LaTeX-mode-hook)
+  :ghook ('org-mode-hook #'embrace-org-mode-hook)
+  :ghook ('ruby-mode-hook #'embrace-ruby-mode-hook)
+  :ghook ('emacs-lisp-mode-hook #'embrace-emacs-lisp-mode-hook)
   :config (progn
             (setq evil-embrace-show-help-p nil)
             (push ?\/ evil-embrace-evil-surround-keys)
-            (evil-embrace-enable-evil-surround-integration)
-            (add-hook 'LaTeX-mode-hook #'embrace-LaTeX-mode-hook)
-            (add-hook 'org-mode-hook #'embrace-org-mode-hook)
-            (add-hook 'ruby-mode-hook #'embrace-ruby-mode-hook)
-            (add-hook 'emacs-lisp-mode-hook #'embrace-emacs-lisp-mode-hook)))
+            (evil-embrace-enable-evil-surround-integration)))
 
 (use-package evil-commentary
   :after evil