+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:
Henrik Lissner 2017-07-04 19:52:21 +02:00
parent 59c5a78940
commit 6093b81412
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 17 additions and 1 deletions

View file

@ -70,3 +70,16 @@ window changes before then, the undo expires."
(run-hooks 'doom-pre-reload-theme-hook) (run-hooks 'doom-pre-reload-theme-hook)
(doom|init-ui) (doom|init-ui)
(run-hooks 'doom-post-reload-theme-hook))) (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)))

View file

@ -9,6 +9,9 @@
(defvar doom-font (font-spec :family "Fira Mono" :size 12) (defvar doom-font (font-spec :family "Fira Mono" :size 12)
"The default font to use. Expects a FONT-SPEC (`font-spec').") "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) (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').") "The default font to use for variable-pitch text. Expects a FONT-SPEC (`font-spec').")

View file

@ -282,7 +282,7 @@
:desc "Indent guides" :n "i" #'highlight-indentation-mode :desc "Indent guides" :n "i" #'highlight-indentation-mode
:desc "Indent guides (column)" :n "I" #'highlight-indentation-current-column-mode :desc "Indent guides (column)" :n "I" #'highlight-indentation-current-column-mode
:desc "Impatient mode" :n "h" #'+present/impatient-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)) :desc "Evil goggles" :n "g" #'+evil-goggles/toggle))