From b95f2a34353aa588d862b17824ff19dfe8678236 Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Sat, 8 Dec 2018 16:19:55 -0500 Subject: [PATCH] Add back theme hot reload --- lain/.emacs.d/config.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lain/.emacs.d/config.org b/lain/.emacs.d/config.org index 7a49a73..2a8a908 100644 --- a/lain/.emacs.d/config.org +++ b/lain/.emacs.d/config.org @@ -104,6 +104,23 @@ Use fish shell in ansi-term (ad-activate 'ansi-term) #+END_SRC +** Theme +#+BEGIN_SRC emacs-lisp +(defvar foltz-wal-theme-path "~/.cache/wal/colors.el") +(defun foltz-apply-theme () + (interactive) + (load-file foltz-wal-theme-path)) + +(defun foltz-theme-callback (event) + (foltz-apply-theme)) + +(if (file-exists-p foltz-wal-theme-path) + (progn + (require 'filenotify) + (file-notify-add-watch foltz-wal-theme-path '(change) 'foltz-theme-callback) + (foltz-apply-theme)) + (load-theme spacemacs-dark)) +#+END_SRC * Package Repo Config ** Repo Location Let's start by configuring the repositories