diff --git a/core/autoload/ui.el b/core/autoload/ui.el index 7d45e8f3f..0738fd53b 100644 --- a/core/autoload/ui.el +++ b/core/autoload/ui.el @@ -15,15 +15,6 @@ (interactive) (nlinum-mode (if nlinum-mode -1 +1))) -;;;###autoload -(defun doom/reset-theme () - "Reset the color theme currently in use." - (interactive) - (let ((theme (car-safe custom-enabled-themes))) - (when theme - (mapc #'disable-theme custom-enabled-themes)) - (load-theme theme t))) - ;;;###autoload (defun doom/window-zoom () "Maximize and isolate the current buffer. Activate again to undo this. If the diff --git a/modules/private/hlissner/+bindings.el b/modules/private/hlissner/+bindings.el index 6e6d4eb68..412ae5731 100644 --- a/modules/private/hlissner/+bindings.el +++ b/modules/private/hlissner/+bindings.el @@ -170,7 +170,7 @@ :desc "Find file in emacs.d" :n "/" #'+hlissner/find-in-emacsd :desc "Browse dotfiles" :n ">" #'+hlissner/browse-dotfiles :desc "Find file in dotfiles" :n "?" #'+hlissner/find-in-dotfiles - :desc "Reload theme" :n "R" #'doom/reset-theme + :desc "Reload theme" :n "R" #'+doom/reset-theme ;; Org notes :desc "Browse notes" :n "n" #'+hlissner/browse-notes :desc "Find file in notes" :n "N" #'+hlissner/find-in-notes diff --git a/modules/ui/doom/autoload/doom.el b/modules/ui/doom/autoload/doom.el new file mode 100644 index 000000000..a204f1a9f --- /dev/null +++ b/modules/ui/doom/autoload/doom.el @@ -0,0 +1,11 @@ +;;; ui/doom/autoload/doom.el + +;;;###autoload +(defun +doom/reset-theme () + "Reset the color theme currently in use." + (interactive) + (let ((theme (or (car-safe custom-enabled-themes) +doom-theme))) + (when theme + (mapc #'disable-theme custom-enabled-themes)) + (load-theme theme t))) +