Skip to content

Instantly share code, notes, and snippets.

@jamescherti
Created July 8, 2024 18:02
Show Gist options
  • Save jamescherti/202cd241e31af226c5b6d772a0d754e8 to your computer and use it in GitHub Desktop.
Save jamescherti/202cd241e31af226c5b6d772a0d754e8 to your computer and use it in GitHub Desktop.
Emacs: Reload the currently active theme to reset all faces.
;; 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