Add autoload/themes.el library

This commit is contained in:
Henrik Lissner 2019-07-23 14:31:00 +02:00
parent 83763414fb
commit 6f56b9f9d4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 60 additions and 57 deletions

View file

@ -76,15 +76,3 @@ Uses the same mechanism as 'bin/doom env reload'."
(unless (file-readable-p doom-env-file)
(error "Failed to generate env file"))
(doom-load-envvars-file doom-env-file))
;;;###autoload
(defun doom/reload-theme ()
"Reload the current color theme."
(interactive)
(let ((theme (or (car-safe custom-enabled-themes) doom-theme)))
(when theme
(mapc #'disable-theme custom-enabled-themes))
(when (and doom-theme (not (memq doom-theme custom-enabled-themes)))
(let (doom--prefer-theme-elc)
(load-theme doom-theme t)))
(doom-init-fonts-h)))