The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Toggle Word Wrap In Emacs

TODO: Pull subtitle into page object

** 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 `toggle-word-wrap` command as well, but that doesn't do what I expect. It takes running `visual-line-mode` (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

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Toggle Word Wrap In Emacs

-- p

** TL;DR

-- p

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

-- p

#+begin_example
Option + w
#+end_example

-- p

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

-- p

#+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

-- p

** Notes

-- p

There's a `toggle-word-wrap` command as well, but that doesn't do what I expect. It takes running `visual-line-mode` (which acts as a toggle) to set the various things up that do what I expect.

-- p

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

-- p

#+begin_example
M-x
visual-line-mode
#+end_example


-- categories
-- Emacs 
-- dotfiles 

-- metadata
-- date: 2022-10-12 15:11:53
-- id: 2g30mkjq
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws