emacs/var/elfeed/db/data/89/897c6975d85c5db01ee48897ef31e82fe34641e8
2022-01-03 12:49:32 -06:00

4 lines
1.4 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>Over the weekend, the <a href="https://emacsconf.org/2021/">2021 EmacsConf</a> took place and presented a slue of great talks. Irreal will mention at least a couple of them starting with Tom Gillespies astounding talk on <a href="https://emacsconf.org/2021/talks/exec/">how to make Org files executable</a>.</p>
<p>The first question is what does it mean to make an Org file executable? The TL;DR is that you add some boiler plate to the Org file so that you can call it as if it were a shell script. The resulting file works under all the common shells including, even, <a href="https://en.wikipedia.org/wiki/PowerShell">powershell</a>. That turns out to be harder than you might think but happily Gillespie has made the process essentially turnkey.</p>
<p>He has added a <a href="https://melpa.org/#/orgstrap">package to Melpa</a> to initialize an org file with all the needed boiler plate so that all one has to do is add the code block to implement whatever the script is intended to do. You can get all the details from the video of the talk or from the transcript of it. Both are available at the above link.</p>
<p>The video it short—only 7 minutes, 9 seconds—so it should be easy to fit in. People are always asking how to make Elisp programs executable without explicitly calling Emacs. Gillespies package lets you do this almost automatically. Take a look at the video; you have nothing to lose but seven minutes.</p>