diff options
author | Amin Bandali <bandali@gnu.org> | 2018-11-18 11:08:08 -0500 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2018-11-18 11:08:08 -0500 |
commit | 7e18e28d4aa007047656a6f95fef36b23141f209 (patch) | |
tree | af6207714d16a0ca5a40816019a16af73674cf9e | |
parent | 73a77e5bda367aa3380d53543be9575dd4000206 (diff) | |
download | configs-7e18e28d4aa007047656a6f95fef36b23141f209.tar.gz configs-7e18e28d4aa007047656a6f95fef36b23141f209.tar.xz configs-7e18e28d4aa007047656a6f95fef36b23141f209.zip |
[emacs] add evil-{nerd-commenter,surround}
Diffstat (limited to '')
-rw-r--r-- | .gitmodules | 6 | ||||
-rw-r--r-- | init.org | 21 | ||||
m--------- | lib/evil-nerd-commenter | 0 | ||||
m--------- | lib/evil-surround | 0 |
4 files changed, 27 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index 515dd81..21d05de 100644 --- a/.gitmodules +++ b/.gitmodules @@ -94,6 +94,12 @@ [submodule "evil-escape"] path = lib/evil-escape url = git@github.com:syl20bnr/evil-escape.git +[submodule "evil-nerd-commenter"] + path = lib/evil-nerd-commenter + url = git@github.com:redguardtoo/evil-nerd-commenter.git +[submodule "evil-surround"] + path = lib/evil-surround + url = git@github.com:emacs-evil/evil-surround.git [submodule "exec-path-from-shell"] path = lib/exec-path-from-shell url = git@github.com:purcell/exec-path-from-shell.git @@ -752,6 +752,27 @@ customizing it. #+end_src #+begin_src emacs-lisp +(use-package evil-nerd-commenter + :after evil + :general + (nmap + "gc" 'evilnc-comment-operator + "gy" 'evilnc-copy-and-comment-lines)) +#+end_src + +#+begin_src emacs-lisp +(use-package evil-surround + :after evil + :general + (omap + "s" 'evil-surround-edit + "S" 'evil-Surround-edit) + (vmap + "S" 'evil-surround-region + "gS" 'evil-Surround-region)) +#+end_src + +#+begin_src emacs-lisp (amin--leader-keys "/" '(:ignore t :wk "search") diff --git a/lib/evil-nerd-commenter b/lib/evil-nerd-commenter new file mode 160000 +Subproject 275c95c89cc09c7096bd6fd0deabd49f29634f5 diff --git a/lib/evil-surround b/lib/evil-surround new file mode 160000 +Subproject 63ce01848878ce011eb4fee59c51109dd1e3ddb |