Leanpub Header

Skip to main content

Literate Configuration

Beautiful and functional configuration files using literate programming

Learn how to produce beautiful, functional and easily-shareable configuration files using Emacs and org-mode

Free With Membership

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
0
Pages
About

About

About the Book

This booklet will teach you about Literate Configuration, which is the application of Literate Programming to configuration files. Literate Programming can be especially applicable to configuration files for the following reasons:

  • Configuration files are inherently focused, since they correspond to a single application, program or set of programs, all related. This makes it easier to draw a narrative for them;
  • Most configuration files are self-contained but their structure and syntax may not be immediately evident, so they benefit from a human-readable explanation of their contents;
  • Configuration files are often shared and read by others, as we all like to learn by reading the config files of other people. Applying Literate Programming to config files makes them much easier to share, since their explanation is naturally woven into the code;

Org-mode is a powerful and simple markup language for general writing, but with unique features that make it easy to include code within the text, and even further, to easily extract that code into stand-alone source files which can be interpreted by their corresponding programs.

Whether you already use Emacs and org-mode or not, you will find value in this book by seeing how uniquely Literate Programming can help you better write, maintain, understand and share your config files.

Price

Pick Your Price...

With Membership

Free!

$7.99

You pay

$7.99

Author earns

$6.39
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 0)

0
The author will earn $0.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Diego Zamboni

I am a computer scientist, security expert, consultant, programmer, sysadmin, author and overall geek, with a passion for computer security and automation. I am from Mexico and live in Switzerland.

Leanpub Podcast

Episode 131

An Interview with Diego Zamboni

Contents

Table of Contents

ILiterate configuration

1Literate Programming

  1. Org mode

2The Tools and Process

  1. Emacs and Org mode
  2. How it works
  3. Configuring Emacs and Org for literate programming
  4. Structure of a literate config file

3Tips and tricks

  1. Converting your existing config files
  2. Using noweb references to structure your code
  3. Multiple config files per org file
  4. IILiterate config examples

4Emacs

  1. References
  2. Doom config file overview
  3. Doom modules
  4. General configuration
  5. Org mode
  6. Coding
  7. Other tools
  8. Experiments

5Hammerspoon

  1. General variables and configuration
  2. Spoon Management
  3. BetterTouchTool integration (experimental)
  4. URL dispatching to site-specific browsers
  5. Window and screen manipulation
  6. Organization and Productivity
  7. System and UI
  8. Other applications
  9. Seal application launcher/controller
  10. Network transitions
  11. Pop-up translation
  12. Leanpub integration
  13. Showing application keybindings
  14. Loading private configuration
  15. End-of-config animation

6Elvish

  1. Paths
  2. Package installation
  3. Automatic proxy settings
  4. General modules and settings
  5. Aliases and miscellaneous functions
  6. Completions
  7. Prompt theme
  8. iTerm2 shell integration support
  9. Long-running-command notifications
  10. Directory and command navigation and history
  11. Dynamic terminal title
  12. Loading private settings
  13. O’Reilly Atlas
  14. OpsGenie
  15. LeanPub
  16. TinyTeX
  17. Environment variables
  18. Utility functions
  19. Work-specific stuff
  20. Exporting aliases

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub