I'm trying
(define-key evil-normal-state-map (kbd "o") nil)
(define-key evil-normal-state-map (kbd "o") 'evil-end-of-line)
but the key remains bound to evil-open-below
.
FWIW I'm using spacemacs
on emacs 24.5.1
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI'm trying
(define-key evil-normal-state-map (kbd "o") nil)
(define-key evil-normal-state-map (kbd "o") 'evil-end-of-line)
but the key remains bound to evil-open-below
.
FWIW I'm using spacemacs
on emacs 24.5.1
To change definitions inside a keymap, it must be available at the time you access it. In this case it would happen after Evil has been loaded which unless you've explicitly done that before that snippet will not be the case. The cleanest way of deferring it until that point would be using with-eval-after-load
:
(with-eval-after-load 'evil-maps
(define-key evil-normal-state-map (kbd "o") 'evil-end-of-line))