Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created September 9, 2019 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-piziak/fc8d1e37e11a00bfad547b1f0ccc737b to your computer and use it in GitHub Desktop.
Save matthew-piziak/fc8d1e37e11a00bfad547b1f0ccc737b to your computer and use it in GitHub Desktop.
(defun load-theme--disable-old-theme(theme &rest args)
"Disable current theme before loading new one."
(mapcar #'disable-theme custom-enabled-themes))
(advice-add 'load-theme :before #'load-theme--disable-old-theme)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment