Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Toggle Word Wrap In Emacs

** TL;DR

To toggle word wrap for a file buffer, I use :

#+begin _ example Option + w #+end _ example

That's keybind is setup by adding this into a config file that gets parsed by my Spacemacs install.

#+FILENAME : toggle - word - wrap.el #+begin _ src elisp : results silent : tangle ~/workshop/dotfiles.alanwsmith.com/dotfiles/emacs/tangled - files/toggle - word - wrap.el (global - unset - key (kbd "M - w")) (global - set - key (kbd "M - w") 'visual - line - mode) #+end _ src

** Notes

There's a [TODO: Code shorthand span ] command as well, but that doesn't do what I expect. It takes running [TODO: Code shorthand span ] (which acts as a toggle) to set the various things up that do what I expect.

Before I setup the hotkey above, I don't think there was a keybind for ` visual - line - mode ` . So, I'd run it with :

#+begin _ example M - x visual - line - mode #+end _ example