How to make cursor stop at the last character of a line instead of at the linefeed character? I use evil-mode.
Steps to reproduce the issue:
- Start Emacs in shell via
emacs -nw -Q.
- Press C-e to move focus to the end of the line.
- You can see the yellow cursor stops at the linefeed character instead of the
UPDATE: Thanks guys. It turns out it's not a bug but just default behavior of Emacs.
My issue is actually I'm using evil-mode and I mistakenly turn off a useful feature of evil.
Here is the CORRECT setup code to turn that flag on in evil-mode:
(setq evil-move-cursor-back t)