Created
October 21, 2014 21:40
-
-
Save dleslie/c0ec5e05dcbfb2d2a518 to your computer and use it in GitHub Desktop.
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
(defun override-theme (arg) | |
"Disables all enabled themes and then loads the provided theme." | |
(interactive | |
(list | |
(intern (completing-read "Load custom theme: " | |
(mapcar 'symbol-name (custom-available-themes)))))) | |
(while custom-enabled-themes | |
(disable-theme (car custom-enabled-themes))) | |
(load-theme arg t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment