Re:Emacs: ffmpeg and macOS aliasing commands
by BeetleB on Sunday December 18, 2022 @02:28PM
(#34041823)
For things like this, I utilize the Babel feature in Org mode.
[ Parent
| on HN ]
Re:Emacs: ffmpeg and macOS aliasing commands
by markusl2ll on Monday December 19, 2022 @05:21AM
(#34050495)
I recently created a tiny tool to run code blocks from org files: https://github.com/eyeinsky/org_script
Essentially, you just mark the code blocks with `:script name`, and then can list or execute the block from a terminal. This also keeps the script in context within whatever other notes you had on the topic, when you were figuring it out etc. And if something turns out to be a useful snippet, you move it out to an actually separate script. :)