From 85aed2343af26b278eb8254846554881f8e35330 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 24 Mar 2023 07:27:44 +0100 Subject: emacs: sest up evil-embrace hooks more nicely --- user/emacs/init.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'user/emacs') diff --git a/user/emacs/init.el b/user/emacs/init.el index b8d8d863..bb59c2aa 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -418,14 +418,14 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (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 -- cgit 1.4.1