Literate config examples
In this part of the book you will find three real-world examples of literate configuration files created, maintained and used by me. These are the real thing—-what you see here is included directly from the Org files that contain the configuration I use for Emacs (with Doom Emacs), Hammerspoon and Elvish, respectively. You can find the latest version of these files, both in Org and in their corresponding tangled output, in Github at the locations specified in each of the sections.
Note also that each section links to a post in my blog containing the corresponding config file. This illustrates another advantage of literate configuration: that the same Org file can be used to produce the output in multiple formats. Each one of the literate config files you see below are rendered in the following places:
- This book, produced by exporting the Org files in Leanpub’s Markua format using my own
ox-leanpubpackage; - The corresponding blog posts in my blog, produced by exporting in Hugo Markdown format using the excellent
ox-hugopackage; - Directly in GitHub and GitLab, thanks to their support for rendering Org files.