Adding missing :type to font defcustom

This commit is contained in:
TEC 2024-03-26 16:28:04 +08:00
parent 8d3cad7e02
commit 2d837c61b1
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 0 deletions

View File

@ -5115,6 +5115,7 @@ For ease of use, let's also set up an easy way of setting the ~:font~ attribute.
(defcustom variable-pitch-serif-font (font-spec :family "serif")
"The font face used for `variable-pitch-serif'."
:group 'basic-faces
:type '(restricted-sexp :tag "font-spec" :match-alternatives (fontp))
:set (lambda (symbol value)
(set-face-attribute 'variable-pitch-serif nil :font value)
(set-default-toplevel-value symbol value)))