[emacs/evil] unbind C-k (instead use C-S-k) and down-mouse-1
authorAmin Bandali <bandali@gnu.org>
Wed, 21 Nov 2018 05:08:15 +0000 (00:08 -0500)
committerAmin Bandali <bandali@gnu.org>
Wed, 21 Nov 2018 05:08:15 +0000 (00:08 -0500)
- 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

init.org

index defa13d..cf19fbf 100644 (file)
--- 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-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
 #+end_src
 
 #+begin_src emacs-lisp