+present/big-mode => doom-big-font-mode
And added new variable: doom-big-font app/present is deprecated so this feature has been moved into core.
This commit is contained in:
parent
59c5a78940
commit
6093b81412
3 changed files with 17 additions and 1 deletions
|
@ -70,3 +70,16 @@ window changes before then, the undo expires."
|
|||
(run-hooks 'doom-pre-reload-theme-hook)
|
||||
(doom|init-ui)
|
||||
(run-hooks 'doom-post-reload-theme-hook)))
|
||||
|
||||
;;;###autoload
|
||||
(define-minor-mode doom-big-font-mode
|
||||
"A global mode that resizes the font, for streams, screen-sharing and
|
||||
presentations."
|
||||
:init-value nil
|
||||
:lighter " BIG"
|
||||
:global t
|
||||
(unless (fontp doom-big-font)
|
||||
(user-error "`doom-big-font' isn't set to a valid font"))
|
||||
(if doom-big-font-mode
|
||||
(set-frame-font doom-big-font t t)
|
||||
(set-frame-font doom-font t t)))
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
(defvar doom-font (font-spec :family "Fira Mono" :size 12)
|
||||
"The default font to use. Expects a FONT-SPEC (`font-spec').")
|
||||
|
||||
(defvar doom-big-font nil
|
||||
"The default font to use. Expects a FONT-SPEC (`font-spec').")
|
||||
|
||||
(defvar doom-variable-pitch-font (font-spec :family "Fira Sans" :size 12)
|
||||
"The default font to use for variable-pitch text. Expects a FONT-SPEC (`font-spec').")
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@
|
|||
:desc "Indent guides" :n "i" #'highlight-indentation-mode
|
||||
:desc "Indent guides (column)" :n "I" #'highlight-indentation-current-column-mode
|
||||
:desc "Impatient mode" :n "h" #'+present/impatient-mode
|
||||
:desc "Big mode" :n "b" #'+present/big-mode
|
||||
:desc "Big mode" :n "b" #'doom-big-font-mode
|
||||
:desc "Evil goggles" :n "g" #'+evil-goggles/toggle))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue