I've configured Doom emacs to run an interactive evil-ex command in visual mode, the reaconfiguration is as below:
(defun evil-insert-into-lines ()
(interactive)
(evil-ex "'<,'>norm I"))
(defun evil-append-to-lines ()
(interactive)
(evil-ex "'<,'>norm A"))
(define-key evil-visual-state-map (kbd "C-i") 'evil-insert-into-lines)
(define-key evil-visual-state-map (kbd "C-a") 'evil-append-to-lines)
The second function is invoked both by pressing C-a and C-shift-a (C-A) but the first function only works when I press (C-shift-i). Anyone has any idea what could be the reason?
C-i
is theTAB
character, so there is probably some kind of conflict happening on that basis. What doC-h k C-i
andC-h k C-S-i
report?C-h k C-i
says it's bound tobetter jump forward
butC-S-i
is bound to my function.