emacs/var/elfeed/db/data/f5/f58a18b724593353b9a5ec8b45bbed205347653f
2022-01-03 12:49:32 -06:00

9 lines
2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>Protesilaos Stavrou has a new video out on <a href="https://www.youtube.com/watch?v=7eWAfmABHMs">the Emacs bookmarks system</a>. If you dont use bookmarks, you should give them a try. Theyre really handy for files you use often but dont want to keep loaded all the time. Where they really shine for me is hard-to-find nodes in the info system. For example, I always have a hard time finding the Emacs syntax class information so I set a bookmark to pop me right into the info page.</p>
<p>If you use <a href="https://www.emacswiki.org/emacs/BookmarkPlus">bookmark+</a> you can even use bookmarks to call a function or load a page in your browser. I have a bookmark to load Irreal, which is useful when writing and posting to the site. Ive been using bookmark+ for a long time so Im no longer sure what functionality is also in the default bookmark package.</p>
<p>If you want to integrate bookmarks into your workflow, I cant recommend stealing abo-abos workflow enough. He uses <a href="https://oremacs.com/2015/01/06/rushing-headlong/">a hydra and his headlong package</a> to make opening a bookmark every efficient. Heres the hydra entry I use for opening bookmarks</p>
<div class="org-src-container">
<pre class="src src-elisp">(<span style="color: #8b2252;">"m"</span> headlong-bookmark-jump <span style="color: #8b2252;">"bmk"</span>)
</pre>
</div>
<p>Ill let you read the details at the above link but the TL;DR is that you can specify a bookmark with a single key in most cases. Thus, to open the aforementioned syntax node, I simply type <kbd>Hyper</kbd>+<kbd>w</kbd> <kbd>m</kbd> <kbd>s</kbd> and the page opens. The <kbd>Hyper</kbd>+<kbd>w</kbd> invokes a hydra that I use for window and buffer related operations. The <kbd>m</kbd> says to jump to a bookmark and the <kbd>s</kbd> specifies the syntax class info node.</p>
<p>The video is 24 minutes, 20 seconds long so plan accordingly. As always with Prots videos, its worth spending a few minutes on.</p>