9 lines
2 KiB
Plaintext
9 lines
2 KiB
Plaintext
<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 don’t use bookmarks, you should give them a try. They’re really handy for files you use often but don’t 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. I’ve been using bookmark+ for a long time so I’m no longer sure what functionality is also in the default bookmark package.</p>
|
||
<p>If you want to integrate bookmarks into your workflow, I can’t recommend stealing abo-abo’s 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. Here’s 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>I’ll 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 Prot’s videos, it’s worth spending a few minutes on.</p> |