From: Amin Bandali Date: Wed, 21 Nov 2018 05:08:15 +0000 (-0500) Subject: [emacs/evil] unbind C-k (instead use C-S-k) and down-mouse-1 X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/837dacf954d08ddfafea637de14254f6cf196617?ds=inline;hp=c7edd059af577713696c235c46ee2b3f7514ee1b [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 --- 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