mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-30 14:32:08 -05:00
Add back theme hot reload
This commit is contained in:
parent
c1dca1eed3
commit
b95f2a3435
@ -104,6 +104,23 @@ Use fish shell in ansi-term
|
|||||||
(ad-activate 'ansi-term)
|
(ad-activate 'ansi-term)
|
||||||
#+END_SRC
|
#+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
|
* Package Repo Config
|
||||||
** Repo Location
|
** Repo Location
|
||||||
Let's start by configuring the repositories
|
Let's start by configuring the repositories
|
||||||
|
Loading…
Reference in New Issue
Block a user