← aner.zakobar.com

Emacs + Nix + Org config

Background for the uninitiated

My personal workspace configuration is written in Nix nowadays (shocker), and the repo itself is about two years old. However, since I live in Emacs, most of the configuration lives in the .org files that define my Emacs experience, and these files have been through a few repos. Going back, I found the first commit of a config file that would later become what I use today. It is dated February 2020, so barely pre-covid.

I currently have thousands of lines determining my Emacs experience, and so the use of ORG mode is really good for me. The configuration files themselves have thousands of lines of code. ORG mode configuration provides two key benefits:

  • Structure: with thousands of lines of code, it is easy to get lost. ORG mode makes navigating between levels and headings easy, allowing me to section off areas of the file for different aspects of the configuration.
  • Context: the ability to write also in plain English allows me to document oddities in the configuration very easily. This could be done with comments of course, but I find having the ability to write very readable English easily makes me document more often.

Fast-forward to today

Nowadays I have a NIX site.

ur