1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-27 21:19:51 -05:00

Add back theme hot reload

This commit is contained in:
Jack Foltz 2018-12-08 16:19:55 -05:00
parent c1dca1eed3
commit b95f2a3435
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -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