2017-02-01 00:31:58 -05:00
|
|
|
;;; 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)))
|
|
|
|
|
2017-02-19 18:11:44 -05:00
|
|
|
;;;###autoload
|
|
|
|
(defun doom/window-zoom ()
|
|
|
|
"Maximize and isolate the current buffer. Activate again to undo this. If the
|
|
|
|
window changes before then, the undo expires."
|
|
|
|
(interactive)
|
2017-05-11 09:48:12 +02:00
|
|
|
(if (and (one-window-p)
|
|
|
|
(assoc ?_ register-alist))
|
|
|
|
(jump-to-register ?_)
|
|
|
|
(window-configuration-to-register ?_)
|
|
|
|
(delete-other-windows)))
|