summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2020-01-02 14:03:12 +0100
committerAlan Pearce2020-01-02 14:03:12 +0100
commiteef5824c33a59788e6d6ab2233d698b106bce167 (patch)
tree163f5459f68f41767bf4a6e51ee0c1b2e7ebce9d /user
parente82ddce054267391a08e2514658961d9b1d56605 (diff)
downloadnixfiles-eef5824c33a59788e6d6ab2233d698b106bce167.tar.lz
nixfiles-eef5824c33a59788e6d6ab2233d698b106bce167.tar.zst
nixfiles-eef5824c33a59788e6d6ab2233d698b106bce167.zip
Emacs: configure evil-embrace to supplement evil-surround
Diffstat (limited to 'user')
-rw-r--r--user/emacs/.emacs.d/init.el9
-rw-r--r--user/settings/emacs.nix1
2 files changed, 10 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index 5d1be717..e946ce23 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -328,6 +328,15 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :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
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 552784ab..bbb4e033 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -100,6 +100,7 @@ in
       evil-anzu
       evil-collection
       evil-commentary
+      evil-embrace
       evil-ledger
       evil-magit
       evil-mu4e