Reputation: 18712
Whenever I start Emacs (GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)), I turn on visual line mode (Line Wrapping in This Buffer -> Word Wrap (Visual Line mode)
) for any file I want to edit:
How can I make Emacs turn it on automatically on every file (so that I don't have to do it manually)?
Upvotes: 1
Views: 855
Reputation: 30701
The code for that menu item and the other Line Wrapping in This Buffer items is in file menu-bar.el
. You can perhaps use that code for inspiration to create what you need. See also the Emacs manual, node Visual Line Mode. See also Emacs bug #39848.
This bug (regression actually) has been fixed in the development code for Emacs 27 (not yet released).
Upvotes: 1