Questions tagged [text-editing]
Questions about editing or manipulating text inside of Emacs.
246 questions
1 vote
2 answers
173 views
How can I delete the space-delimited preceding word?
I often mistype a space-delimited string and when I do that, I just want to type the correct space-delimited string, without deleting the incorrect space-delimited string. After I have typed the ...
0 votes
1 answer
68 views
Show text between two lines
Suppose I have the next log file: 2023-09-17 00:59:00.245 Start ... here many lines of text#1 (about 1000 lines of text) 2024-02-23 18:48:06.692 INFO [MyClass:myExecutor-3] Some process - enter to ...
0 votes
1 answer
101 views
How to implement avy comment region function?
I am using doom emacs on Mac OS. I would like to have an avy comment region and line command, where just as with for example avy-kill-region the region is selected. I've come up with the following ...
1 vote
2 answers
340 views
Packages to move a line up and down in the text
Please don't call me lazy, but has anybody compared all the available packages that allow to move a line up or down in the text? I have found: move-lines move-text move-dup drag-stuff Or, just, to ...
1 vote
1 answer
57 views
Wrap a region with up / below code
From the following code (defun foo () (defun bar1 () (do-something))) (defun bar2 () (do-something)) I want to make the following (defun foo () (defun bar1 () (do-...
3 votes
3 answers
175 views
Protect a buffer from accidental editing
Sometimes I want to prevent myself from accidentally editing a buffer. How can I write-protect the buffer?
3 votes
2 answers
378 views
How to ignore accents (À Â É Ê etc.) when sorting?
When sorting text with Emacs, the result is wrong for accented characters: Always Emerald Yesterday Zoo À la campagne Âge Écarlate Être Here is the result I would like instead: À la campagne Âge ...
1 vote
1 answer
169 views
Why Emacs as an editor leaves all the ad hoc packages development work to the community rather than professional parties?
I have been using Emacs for daily editing and programming for several years. I am deeply attracted to the fast and efficient input method as well as the customizability. But recently I find that it is ...