Add docstrings to theme and font settings
This commit is contained in:
parent
d7e7374cc7
commit
6a07ba8d1f
1 changed files with 10 additions and 0 deletions
|
@ -34,22 +34,32 @@ shorter major mode name in the mode-line. See `doom|set-mode-name'.")
|
||||||
|
|
||||||
;; Settings
|
;; Settings
|
||||||
(def-setting! :theme (theme)
|
(def-setting! :theme (theme)
|
||||||
|
"Sets the current THEME (a symbol)."
|
||||||
`(unless doom-theme
|
`(unless doom-theme
|
||||||
(setq doom-theme ,theme)))
|
(setq doom-theme ,theme)))
|
||||||
|
|
||||||
(def-setting! :font (family &rest spec)
|
(def-setting! :font (family &rest spec)
|
||||||
|
"Sets the default font (if one wasn't already set). FAMILY is the name of the
|
||||||
|
font, and SPEC is a `font-spec'."
|
||||||
`(unless doom-font
|
`(unless doom-font
|
||||||
(setq doom-font (font-spec :family ,family ,@spec))))
|
(setq doom-font (font-spec :family ,family ,@spec))))
|
||||||
|
|
||||||
(def-setting! :variable-pitch-font (family &rest spec)
|
(def-setting! :variable-pitch-font (family &rest spec)
|
||||||
|
"Sets the default font for the variable-pitch face and minor mode (if one
|
||||||
|
wasn't already set). FAMILY is the name of the font, and SPEC is a `font-spec'."
|
||||||
`(unless doom-variable-pitch-font
|
`(unless doom-variable-pitch-font
|
||||||
(setq doom-variable-pitch-font (font-spec :family ,family ,@spec))))
|
(setq doom-variable-pitch-font (font-spec :family ,family ,@spec))))
|
||||||
|
|
||||||
(def-setting! :big-font (family &rest spec)
|
(def-setting! :big-font (family &rest spec)
|
||||||
|
"Sets the font to use for `doom-big-font-mode' (if one wasn't already set).
|
||||||
|
FAMILY is the name of the font, and SPEC is a `font-spec'."
|
||||||
`(unless doom-big-font
|
`(unless doom-big-font
|
||||||
(setq doom-big-font (font-spec :family ,family ,@spec))))
|
(setq doom-big-font (font-spec :family ,family ,@spec))))
|
||||||
|
|
||||||
(def-setting! :unicode-font (family &rest spec)
|
(def-setting! :unicode-font (family &rest spec)
|
||||||
|
"Sets the font to use for unicode characters (if one wasn't already set).
|
||||||
|
FAMILY is the name of the font, and SPEC is a `font-spec'. This is ignored if
|
||||||
|
the ':ui unicode' module is enabled."
|
||||||
`(unless doom-unicode-font
|
`(unless doom-unicode-font
|
||||||
(setq doom-unicode-font (font-spec :family ,family ,@spec))))
|
(setq doom-unicode-font (font-spec :family ,family ,@spec))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue