Adding automatic light/dark theme switching to doom-emacs running on a mac with ambient light sensor.
Idea adapted from: Matt Bilyeu https://matthewbilyeu.com/blog/2018-04-09/setting-emacs-theme-based-on-ambient-light
- Make the lmutracker executable using
clang
and place it in your custom doom directory:$ cd ~/.doom.d/ # start in your custom doom directory, wherever that is for you.
$ touch lmutracker.mm # copy in the contents of this file however you like