3 ms·
Emacs Microfeature
- imran-iq 2y agovim has that too with gw https://vimhelp.org/change.txt.html#gw https://vimhelp.org/change.txt.html#gw
- kijalo 2y agoI 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.
- deleted 2y ago[deleted]
- mysore 2y agoIs emacs an evolutionary deadend? im looking at LLM-plugins and emac's support for chatgpt is no where near cursor or zed. I kind of want to contribute my own
- vrighter 2y agothat's a good thing
- dreamcompiler 2y agoAnd 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.)
- m463 2y agoI just highlight code and press tab. does it do something special?
- dreamcompiler 2y agoOr put cursor at open or closing paren of form and do M-q. No highlight needed.
- nemoniac 2y agoIn that case aggressive-indent-mode will save you hundreds of keystrokes per day.
- deleted 2y ago[deleted]
- juancn 2y agoWhy is the example word wrap so bad? It's breaking words in half. No sane editor does it that way.
- jrootabega 2y agoEmacs 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.
- tom_ 2y agoEmacs 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/Continuation-Lines.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Co...) Word wrap is available with M-x word-wrap-whitespace.
- Ferret7446 2y agoDo you want to display long lines, or do you want to add newlines to the file? Generally, the former is only used occasionally for code (where wrapping by words isn't usually useful), and human language text uses the latter.
- jrootabega 2y agoAgreed for a completely unconfigured emacs process. But the article mentions enabling word-wrap. (That's one possible point of confusion for some - he means a variable/mode/feature with the name of "word-wrap", not just a generic word wrapping behavior.) It seems that that feature still does the sensible thing up through version 30. And from what I can tell from the mailing list, word-wrap-whitespace is an enhancement of the default word-wrap behavior that allows you to define your own whitespace chars to trigger a wrap. But from an outsider's perspective, I see how not having ANY whitespace-based word wrapping behavior enabled by default would be off-putting.