When working on a file from start to finish over a lifetime in Emacs, for example as in translating a lengthy text, it is good to keep the file bookmarked at the end of every day, because Emacs’ bookmarks save the cursor location. This way, whenever opening the file from bookmarks again to continue with it, it opens where it had been left off.
Continue reading “Rebookmark in Emacs”Emacs: Electric undesirables
In my Emacs config I have enabled only electric-pair-mode
to speed up some quotes and parens. Either this or something else also enables electric-indent-mode
which produces weird cursor behaviour in Org lists, particularly when I disagree that I am in a list, so I have ended up suppressing electric-indent-mode
explicitly by setting M-x customize-option RET electric-indent-mode
off.
The best buffers list in Emacs: bs-show
How about triggering a popup list of buffers with a keybind, finding your preferred next buffer to go to with arrow keys, and launching it with Enter, which at the same time dismisses the popup list of buffers? This is how bs-show
behaves in Emacs.
Two hooks for Emacs Occur
Occur is the best search function in Emacs. It
- Lists search results from the entire buffer (not just from the cursor forward or from the cursor backward)
- Lists the results in a separate buffer (so you are not unnecessarily moving away from your current location in the original buffer to find a wanted search result)
- Provides line numbers for matched results
Emacs: Build a keychain with repeatable keys
A keychain includes a prefix key (or prefix keybind) and then more keys to launch a command. This is different from a keybind to launch a command. In a keychain, the keys are pressed in sequence, prefix first and then something else to complete the keychain, whereas in a keybind they are pressed at once.
Continue reading “Emacs: Build a keychain with repeatable keys”
Emacs: Copy this line
Emacs tends to mark from point (cursor) towards either end of the element. If you want a function that marks or copies the entire element from beginning to end, you often have to build them yourself.
Continue reading “Emacs: Copy this line”Emacs: Collect keyboard macros
Keyboard macros in Emacs are ephemeral, but if you use them often, it makes sense to collect them. Here’s how.
Continue reading “Emacs: Collect keyboard macros”Emacs Hemingway mode
Well, there is no Hemingway mode. That is, there is no way to write like a novelist on a typewriter. On a typewriter the current line is always at the same place.
Continue reading “Emacs Hemingway mode”Emacs: A bufferp exercise
Inside Emacs at (info "(eintr)Buffer Exercises")
there is the following exercise:
Unwanted numbering of headings, Unwanted TOC, and Wanton Listifying when exporting Emacs Org with Pandoc
Pandoc handles most text format conversions effortlessly, but there are some major glitches when the source is Emacs Org.
Continue reading “Unwanted numbering of headings, Unwanted TOC, and Wanton Listifying when exporting Emacs Org with Pandoc”