Skip to content

Instantly share code, notes, and snippets.

@darrik
Created June 14, 2012 00:23
Show Gist options
  • Save darrik/2927349 to your computer and use it in GitHub Desktop.
Save darrik/2927349 to your computer and use it in GitHub Desktop.
darrik/reset-theme
(defun darrik/reset-theme ()
"Disable all loaded themes, effectively resetting to default colors."
(interactive)
(if (< emacs-major-version 24)
(message "Only works in Emacs 24+")
(progn
(mapcar 'disable-theme custom-enabled-themes)
(if (eq custom-enabled-themes nil)
(message "Theme reset.")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment