General cleanup

This commit is contained in:
Henrik Lissner 2017-02-01 00:31:58 -05:00
parent a20bdb28b2
commit d30027aaea
3 changed files with 32 additions and 18 deletions

26
core/autoload/ui.el Normal file
View file

@ -0,0 +1,26 @@
;;; ui.el
;;;###autoload
(defun doom/toggle-fullscreen ()
"Toggle fullscreen Emacs."
(interactive)
(set-frame-parameter
nil 'fullscreen
(unless (frame-parameter nil 'fullscreen)
'fullboth)))
;;;###autoload
(defun doom/toggle-line-numbers ()
"Toggle `nlinum-mode'."
(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)))