When Elfeed, an RSS-reading extension for Emacs, is set up and functional, it is easy to browse the items. The two main views are the list of items from all feeds (named “elfeed-search”) and a single item (named “elfeed-entry”). In both views, the y
key is bound to copy the link of the current item. But how to copy the headline?
Emacs: Return bookmark name based on current buffer filename
Sometimes questions arise: Is the current buffer bookmarked? If yes, what is the name of the bookmark? This is useful to know when bookmarking the same file again at a new cursor position with the same bookmark name.
Continue reading “Emacs: Return bookmark name based on current buffer filename”
Emacs: Fix M-. without a hassle
M-. (i.e. the Alt dot key combination in Emacs) does xref-find-definitions
which only works if you have set up something called a tags table which is incomprehensible and a hassle and therefore unacceptable. It is much easier to use describe-function
or describe-symbol
, which open up *Help* pages in Emacs.
Emacs Dired: View (and edit) file contents without opening a file
Some files open fast, others slower. It may depend on the file viewer too. But in Emacs Dired it is possible to extract file contents without opening the file. The inbuilt function for it is insert-file-contents
.
Continue reading “Emacs Dired: View (and edit) file contents without opening a file”
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: 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: 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”Emacs: A better version to automatically rename buffer with region plus asterisks
The previous post shows the following command to automatically take the selected region, add asterisks around it and rename the buffer accordingly:
Continue reading “Emacs: A better version to automatically rename buffer with region plus asterisks”Emacs: Automatically rename buffer with region
For some workflows that include keeping an eye on many open buffers, it is sometimes useful to rename buffers. This is where inbuilt function rename-buffer
comes in, by default bound to C-x x r.
Continue reading “Emacs: Automatically rename buffer with region”