Created
July 8, 2024 18:02
-
-
Save jamescherti/202cd241e31af226c5b6d772a0d754e8 to your computer and use it in GitHub Desktop.
Emacs: Reload the currently active theme to reset all faces.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Description: Reload the currently active theme to reset all faces. | |
;; Gits URL: https://gist.github.com/jamescherti/202cd241e31af226c5b6d772a0d754e8 | |
;; License: MIT | |
;; Author: James Cherti | |
(defun my-reload-theme () | |
"Reload the currently active theme to reset all faces." | |
(interactive) | |
(let ((current-theme (car custom-enabled-themes))) | |
(when current-theme | |
(disable-theme current-theme) | |
(load-theme current-theme t)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment