General cleanup
This commit is contained in:
parent
a20bdb28b2
commit
d30027aaea
3 changed files with 32 additions and 18 deletions
26
core/autoload/ui.el
Normal file
26
core/autoload/ui.el
Normal 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)))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue