mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: void-function set-fontset-font error
Due to some packages and modules using this in some (non-GUI) builds of Emacs. display-graphic-p isn't enough here, so rather than police all the possible offenders, I've defined it to no-op in those cases, instead. Close: #6876
This commit is contained in:
@ -632,11 +632,13 @@ triggering hooks during startup."
|
||||
(put sym 'disabled "Doom doesn't support `customize', configure Emacs from $DOOMDIR/config.el instead"))
|
||||
(put 'customize-themes 'disabled "Set `doom-theme' or use `load-theme' in $DOOMDIR/config.el instead")
|
||||
|
||||
;; Doesn't exist in terminal Emacs, but some Emacs packages (internal and
|
||||
;; external) use it anyway, leading to a void-function error, so define a no-op
|
||||
;; substitute to suppress them.
|
||||
;; These two functions don't exist in terminal Emacs, but some Emacs packages
|
||||
;; (internal and external) use it anyway, leading to void-function errors. I
|
||||
;; define a no-op substitute to suppress them.
|
||||
(unless (fboundp 'define-fringe-bitmap)
|
||||
(fset 'define-fringe-bitmap #'ignore))
|
||||
(unless (fboundp 'set-fontset-font)
|
||||
(fset 'set-fontset-font #'ignore))
|
||||
|
||||
(after! whitespace
|
||||
(defun doom-is-childframes-p ()
|
||||
|
Reference in New Issue
Block a user