How to unbind TAB in normal mode?
I'll like to use Tab as per the Emacs bindings in normal mode, so tried this: (setq evil-want-C-i-jump nil) (define-key evil-normal-state-map (kbd "TAB") nil) (define-key evil-normal-state-map [tab] nil) No way. C-h k TAB in normal mode still shows: TAB (translated from <tab>) runs the command evil-jump-forward, which is an interactive Lisp function in `evil-commands.el'. It is bound to TAB. (evil-jump-forward &optional COUNT) Any suggestions?
On 2013-03-20, Óscar Fuentes <[email protected]> wrote:
I'll like to use Tab as per the Emacs bindings in normal mode, so tried this:
(setq evil-want-C-i-jump nil) (define-key evil-normal-state-map (kbd "TAB") nil) (define-key evil-normal-state-map [tab] nil)
This binding is a motion, so it's in `evil-motion-state-map` and not in `evil-normal-state-map` (the former contains common bindings for normal state, visual state, operator state, ..., which means virtually all motion commands). Try (define-key evil-motion-state-map "\t" nil) But ... this
(setq evil-want-C-i-jump nil)
should work, too, but only if you set it *before* evil is loaded, i.e (setq evil-want-C-i-jump nil) (require 'evil) should work. Btw, almost all bindings are defined in the file `evil-maps.el`, so it's a good place to look at when dealing with key bindings. Best regards, Frank
Frank Fischer <[email protected]> writes:
This binding is a motion, so it's in `evil-motion-state-map` and not in `evil-normal-state-map` (the former contains common bindings for normal state, visual state, operator state, ..., which means virtually all motion commands). Try
(define-key evil-motion-state-map "\t" nil)
But ... this
(setq evil-want-C-i-jump nil)
should work, too, but only if you set it *before* evil is loaded, i.e
(setq evil-want-C-i-jump nil) (require 'evil)
should work.
Btw, almost all bindings are defined in the file `evil-maps.el`, so it's a good place to look at when dealing with key bindings.
Yes, that's where I got the evil-want-C-i-jump idea, but failed to notice that it must be setted before evil is loaded. Now it works as I wish. Thank you.
participants (2)
-
Frank Fischer -
Óscar Fuentes