I finally got it working. Emacs has the line-move-visual
variable, but spacemacs requires spacemacs/toggle-visual-line-navigation
to be run instead. If you want this command to modify the bindings for the arrow keys you'll have to switch spacemacs to the develop
branch (as of 2020-06-25). To do this, skip to step 6 below.
If that solves your problem, congratulations! I am still running elementary Hera (based on Ubuntu 18.04) and was having issues with the elpa gpg key being expired. My workaround is to install emacs26, my full process to fix the issues follows.
- Remove and purge emacs:
sudo apt remove --purge emacs
- Remove config:
rm ~/.spacemacs && sudo rm -R ~/.emacs.d/
- Add emacs stable release PPA:
sudo add-apt-repository ppa:kelleyk/emacs
- Install emacs:
sudo apt install emacs26
- Install spacemacs:
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
- Change emacs to
develop
branch: cd ~/.emacs.d/ && git checkout develop
- Start emacs:
emacs26
- Turn on visual line navigation
spacemacs/toggle-visual-line-navigation-on
Voilà, visual line navigation with arrow keys on Ubuntu 18.04.
visual-line-mode
in the Emacs manual.line-move-visual
is what you're looking for, and it's enabled by default. Try withemacs -Q
. If it's not working, and you're using Emacs 23 or later, then tell us what commands you're using to move up and down between lines.C-h v line-move-visual
say?