0

I'm trying to remap some evil keys to navigate using htns. htn works fine, but s always gives me the "buffer is read-only" error. I'm assuming I need to remap save buffer, but I'm getting lost in the key rebinding api. My .emacs looks like

(define-key evil-motion-state-map (kbd "n") 'evil-next-line)
(define-key evil-motion-state-map (kbd "s") 'evil-previous-line)
(define-key evil-motion-state-map (kbd "h") 'evil-forward-char)
(define-key evil-motion-state-map (kbd "t") 'evil-backward-char)
El Marcel
  • 1,767
  • 1
  • 10
  • 11

1 Answers1

1

It's ok if IĀ use the normal state map instead:

(define-key evil-normal-state-map (kbd "s") 'evil-previous-line)

Does that suit your needs ?

I guess you had this error because the binding was not working.

Ehvince
  • 17,274
  • 7
  • 58
  • 79