diff options
author | Case Duckworth | 2021-01-02 15:33:53 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-02 15:33:53 -0600 |
commit | 20787e0897271cc2d329aea5de4a30484980096e (patch) | |
tree | 0794c44cc10e034edf2c83cb162cd91b1100ae3b | |
parent | Change default header-args (diff) | |
download | emacs-20787e0897271cc2d329aea5de4a30484980096e.tar.gz emacs-20787e0897271cc2d329aea5de4a30484980096e.zip |
Rewrite theme changing code
-rw-r--r-- | config.org | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/config.org b/config.org index 14ed9bf..63fd469 100644 --- a/config.org +++ b/config.org | |||
@@ -375,22 +375,23 @@ Commented for now because I really need to figure out the keybindings I want to | |||
375 | (load-theme 'modus-operandi t) | 375 | (load-theme 'modus-operandi t) |
376 | #+END_SRC | 376 | #+END_SRC |
377 | 377 | ||
378 | **** COMMENT Change themes based on time of day | 378 | **** Change themes based on time of day |
379 | |||
380 | Comment out because, for /some/ reason, =circadian-setup= fucks with =C-g= in the minibuffer. WTF, amirite ?! | ||
381 | |||
382 | Anyway, I should probably be able to figure out how to properly change the theme on my own … later. | ||
383 | 379 | ||
384 | #+BEGIN_SRC emacs-lisp | 380 | #+BEGIN_SRC emacs-lisp |
385 | (cuss calendar-latitude 30.4515) | 381 | (cuss calendar-latitude 30.4515) |
386 | (cuss calendar-longitude -91.1871) | 382 | (cuss calendar-longitude -91.1871) |
387 | 383 | ||
388 | (straight-use-package 'circadian) | 384 | ;; sunrise |
389 | 385 | (run-at-time (nth 1 (split-string (sunrise-sunset))) | |
390 | (cuss circadian-themes '((:sunrise . modus-operandi) | 386 | (* 60 60 24) |
391 | (:sunset . modus-vivendi))) | 387 | (lambda () |
392 | 388 | (modus-themes-load-operandi))) | |
393 | (circadian-setup) | 389 | |
390 | ;; sunset | ||
391 | (run-at-time (nth 4 (split-string (sunrise-sunset))) | ||
392 | (* 60 60 24) | ||
393 | (lambda () | ||
394 | (modus-themes-load-vivendi))) | ||
394 | #+END_SRC | 395 | #+END_SRC |
395 | 396 | ||
396 | *** Fonts | 397 | *** Fonts |