And if you do M-q on Lisp source code it automatically reindents it properly. I do this hundreds of times a day. (Or at least I think I do. I think "reindent" and my fingers seem to issue the proper command.)
I just highlight code and press tab. does it do something special?
Emacs Microfeature
11–16 of 16 posts
Re: Emacs Microfeature
#12And if you do M-q on Lisp source code it automatically reindents it properly. I do this hundreds of times a day. (Or at least I think I do. I think "reindent" and my fingers seem to issue the proper command.)
Re: Emacs Microfeature
#13Why is the example word wrap so bad? It's breaking words in half. No sane editor does it that way.
Emacs word-wrap does it the "sane" way out of the box in 26.3. The current version is 29.3. I tested it with that exact text just now. I doubt it would have gotten worse after 26.3, so something in the author's config or build is probably messing it up. Maybe he's using an even older version. Or maybe he mistakenly doesn't actually have word-wrap set.
Word wrap is available with M-x word-wrap-whitespace.
Re: Emacs Microfeature
#14Earlier quoted context omitted.
Emacs word-wrap does it the "sane" way out of the box in 26.3. The current version is 29.3. I tested it with that exact text just now. I doubt it would have gotten worse after 26.3, so something in the author's config or build is probably messing it up. Maybe he's using an even older version. Or maybe he mistakenly doesn't actually have word-wrap set.
Emacs 30.0.50 wraps charwise for me when invoked with emacs -Q. (The manual describes this as continuation lines: https://www.gnu.org/software/emacs/manual/html_node/emacs/Co... ) Word wrap is available with M-x word-wrap-whitespace.
Generally, the former is only used occasionally for code (where wrapping by words isn't usually useful), and human language text uses the latter.
Re: Emacs Microfeature
#15Earlier quoted context omitted.
Emacs word-wrap does it the "sane" way out of the box in 26.3. The current version is 29.3. I tested it with that exact text just now. I doubt it would have gotten worse after 26.3, so something in the author's config or build is probably messing it up. Maybe he's using an even older version. Or maybe he mistakenly doesn't actually have word-wrap set.
Emacs 30.0.50 wraps charwise for me when invoked with emacs -Q. (The manual describes this as continuation lines: https://www.gnu.org/software/emacs/manual/html_node/emacs/Co... ) Word wrap is available with M-x word-wrap-whitespace.
But from an outsider's perspective, I see how not having ANY whitespace-based word wrapping behavior enabled by default would be off-putting.
Re: Emacs Microfeature
#16I usually use visual-line-mode and visual-fill-column-mode over hard newlines. But I've always stayed away from hard newlines because I imagined that it would make exporting to another format look janky.