From 837dacf954d08ddfafea637de14254f6cf196617 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 21 Nov 2018 00:08:15 -0500 Subject: [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 --- init.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-60-g2f50