summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-11-18 11:08:08 -0500
committerAmin Bandali <bandali@gnu.org>2018-11-18 11:08:08 -0500
commit7e18e28d4aa007047656a6f95fef36b23141f209 (patch)
treeaf6207714d16a0ca5a40816019a16af73674cf9e
parent73a77e5bda367aa3380d53543be9575dd4000206 (diff)
downloadconfigs-7e18e28d4aa007047656a6f95fef36b23141f209.tar.gz
configs-7e18e28d4aa007047656a6f95fef36b23141f209.tar.xz
configs-7e18e28d4aa007047656a6f95fef36b23141f209.zip
[emacs] add evil-{nerd-commenter,surround}
Diffstat (limited to '')
-rw-r--r--.gitmodules6
-rw-r--r--init.org21
m---------lib/evil-nerd-commenter0
m---------lib/evil-surround0
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
diff --git a/init.org b/init.org
index ed8bddb..0f1e578 100644
--- a/init.org
+++ b/init.org
@@ -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