all repos — nixfiles @ eef5824c33a59788e6d6ab2233d698b106bce167

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

Emacs: configure evil-embrace to supplement evil-surround
Alan Pearce alan@alanpearce.eu
Thu, 02 Jan 2020 14:03:12 +0100
commit

eef5824c33a59788e6d6ab2233d698b106bce167

parent

e82ddce054267391a08e2514658961d9b1d56605

2 files changed, 10 insertions(+), 0 deletions(-)

jump to
M user/emacs/.emacs.d/init.eluser/emacs/.emacs.d/init.el
@@ -328,6 +328,15 @@ :after evil   :defer 2
   :config (global-evil-surround-mode +1))
 
+(use-package evil-embrace
+  :after evil-surround
+  :config (progn
+            (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)))
+
 (use-package evil-commentary
   :after evil
   :defer 2
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -100,6 +100,7 @@ evil       evil-anzu
       evil-collection
       evil-commentary
+      evil-embrace
       evil-ledger
       evil-magit
       evil-mu4e