diff options
author | Alan Pearce | 2020-01-02 14:03:12 +0100 |
---|---|---|
committer | Alan Pearce | 2020-01-02 14:03:12 +0100 |
commit | eef5824c33a59788e6d6ab2233d698b106bce167 (patch) | |
tree | 163f5459f68f41767bf4a6e51ee0c1b2e7ebce9d | |
parent | e82ddce054267391a08e2514658961d9b1d56605 (diff) | |
download | nixfiles-eef5824c33a59788e6d6ab2233d698b106bce167.tar.lz nixfiles-eef5824c33a59788e6d6ab2233d698b106bce167.tar.zst nixfiles-eef5824c33a59788e6d6ab2233d698b106bce167.zip |
Emacs: configure evil-embrace to supplement evil-surround
-rw-r--r-- | user/emacs/.emacs.d/init.el | 9 | ||||
-rw-r--r-- | user/settings/emacs.nix | 1 |
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 |