Move doom/reset-theme to ui/doom (and update binding)

This commit is contained in:
Henrik Lissner 2017-05-11 21:45:50 +02:00
parent 3dcc423308
commit 2044872b9b
3 changed files with 12 additions and 10 deletions

View file

@ -15,15 +15,6 @@
(interactive) (interactive)
(nlinum-mode (if nlinum-mode -1 +1))) (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 ;;;###autoload
(defun doom/window-zoom () (defun doom/window-zoom ()
"Maximize and isolate the current buffer. Activate again to undo this. If the "Maximize and isolate the current buffer. Activate again to undo this. If the

View file

@ -170,7 +170,7 @@
:desc "Find file in emacs.d" :n "/" #'+hlissner/find-in-emacsd :desc "Find file in emacs.d" :n "/" #'+hlissner/find-in-emacsd
:desc "Browse dotfiles" :n ">" #'+hlissner/browse-dotfiles :desc "Browse dotfiles" :n ">" #'+hlissner/browse-dotfiles
:desc "Find file in dotfiles" :n "?" #'+hlissner/find-in-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 ;; Org notes
:desc "Browse notes" :n "n" #'+hlissner/browse-notes :desc "Browse notes" :n "n" #'+hlissner/browse-notes
:desc "Find file in notes" :n "N" #'+hlissner/find-in-notes :desc "Find file in notes" :n "N" #'+hlissner/find-in-notes

View file

@ -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)))