Detangle

For some reason I haven’t been following Yisrael Dov’s Emacs is Great series of videos on Emacs. That was definitely a mistake and I’m going to start paying more attention from now on. In the meantime I’d like to mention his video on detangling.

What’s detangling? You probably already know that Org-mode will let you tangle parts of an Org file in the Literate Programming sense. The common example is to write a literate Emacs init file in Org-mode and tangle the actual Elisp into an init.el file for Emacs to use during initiation. Dov shows how you can use the :comments keyword to insert comments in the generated file that are Org links back to the places in the source Org file that produced the Elisp in the generated file. You may or may not think that’s useful but the :comments keyword also enables the capability to make changes in the tangled file and have them inserted back into the source file. Hence detangling.

I had no idea this capability existed but I can see how it could be useful. Dov suggests that you can use it to help debug your init.el file if you keep your configuration in an literate Org file. Take a look at the video for the details.

The video is only 8 minutes long so you can easily watch it during a coffee break.

This entry was posted in General and tagged , . Bookmark the permalink.