summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-11-21 00:08:15 -0500
committerAmin Bandali <bandali@gnu.org>2018-11-21 00:08:15 -0500
commit837dacf954d08ddfafea637de14254f6cf196617 (patch)
tree9c0f5b32dfa93ca4e8583b61b7f90cd6734a41d6
parentc7edd059af577713696c235c46ee2b3f7514ee1b (diff)
downloadconfigs-837dacf954d08ddfafea637de14254f6cf196617.tar.gz
configs-837dacf954d08ddfafea637de14254f6cf196617.tar.xz
configs-837dacf954d08ddfafea637de14254f6cf196617.zip
[emacs/evil] unbind C-k (instead use C-S-k) and down-mouse-1
- i prefer C-k to be kill-line and instead use C-S-k for evil-insert-digraph - unbind down-mouse-1 in evil-motion-state-map, which causes evil to enter visual mode when clicking a link with mouse, for instance in a help buffer
-rw-r--r--init.org9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.org b/init.org
index defa13d..cf19fbf 100644
--- a/init.org
+++ b/init.org
@@ -731,7 +731,14 @@ customizing it.
(unbind-key "C-a" evil-insert-state-map)
(unbind-key "C-e" evil-insert-state-map)
(unbind-key "C-p" evil-insert-state-map)
- (unbind-key "C-n" evil-insert-state-map))
+ (unbind-key "C-n" evil-insert-state-map)
+ (unbind-key "C-k" evil-insert-state-map)
+ (bind-keys
+ :map evil-insert-state-map
+ ("C-k" . kill-line)
+ ("C-S-k" . evil-insert-digraph)
+ :map evil-motion-state-map
+ ([down-mouse-1] . nil)))
#+end_src
#+begin_src emacs-lisp