emacs/var/elfeed/db/data/59/59573e8775b33b02017d8a7ccff2da762381fb3b
2022-01-03 12:49:32 -06:00

11 lines
2.5 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.

<h2>Hacking Away with Hammerspoon and editWithEmacs</h2>
<p>The worst part about <span><abbr title="Emacs">Emacs</abbr> <small><a class="ref" href="https://takeonrules.com/site-map/glossary/#abbr-dfn-EMACS" rel="tag opener" title="Other site-wide references of “Emacs”">🔍</a></small></span> is that sometimes you have to edit things outside of <abbr title="Emacs">Emacs</abbr>.</p>
<p>Yesterday, I found <a class="u-url p-name" href="https://github.com/dmgerman/editWithEmacs.spoon" rel="cite">dmgerman/editWithEmacs.spoon</a>. It uses <cite><a class="u-url p-name" href="http://www.hammerspoon.org/" rel="cite">Hammerspoon</a></cite> to send the current text to and from <abbr title="Emacs">Emacs</abbr>.</p>
<h2 id="explaining-editwithemacsspoon">Explaining editWithEmacs.spoon</h2>
<p>When Im in a non-Emacs application (lets say Firefox) and editing a text area (e.g., a Github Pull Request comment). I can type <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Cmd</kbd>+<kbd>e</kbd> to transfer the text areas content to a new <abbr title="Emacs">Emacs</abbr> buffer</p>
<p>In that buffer, I type away. When Im done, I type <kbd>Ctrl</kbd>+<kbd>c</kbd> then <kbd>Ctrl</kbd>+<kbd>c</kbd> (e.g., <code>C-c C-c</code> in <abbr title="Emacs">Emacs</abbr> lingo) to send the content of that buffer back to the originating application.</p>
<h2 id="forking-and-extending">Forking and Extending</h2>
<p><time datetime="2021-11-13" title="2021-11-13">This morning</time>, I forked the repository and began making updates. <a href="https://github.com/jeremyf/editWithEmacs.spoon">My fork</a> now works wonderfully for my Emacs configuration; and exposes some additional configuration points that I think make this just a bit more extensible.</p>
<p>This is a big deal for me, because Im now well accustomed to using <abbr title="Emacs">Emacs</abbr> for most longer form writing. And with <a href="https://github.com/jeremyf/editWithEmacs.spoon">my editWithEmacs.spoon</a>, I can quickly jump into <abbr title="Emacs">Emacs</abbr> for writing.</p>
<p>Along the way, I also installed <a href="https://github.com/miromannino/miro-windows-manager">Miro Windows Manager</a> for Hammerspoon. I cannot emphasize how awesome that script is for windows management.</p>
<p>Take a look at <a href="https://github.com/jeremyf/dotzshrc/blob/main/symlinks/.hammerspoon/init.lua">my Hammerspoon init.lua</a> file. The two “spoons” that Im using are already making my computing life just a bit nicer.</p>