examples: emacs: Check existence of font configuration before loading.

* modules/rosenthal/examples/emacs/init.el: Check existence of font
configuration before loading.
This commit is contained in:
Hilton Chain 2025-06-25 17:16:47 +08:00
parent ead325de92
commit 396f263ff6
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -8,7 +8,9 @@
(make-empty-file custom-file)
(load custom-file))
(load-file "$$fonts.el$$")
(let ((font-config "$$fonts.el$$"))
(when (file-exists-p font-config)
(load-file font-config)))
;; Tweak garbage collection strategy.
;;guix:emacs-gcmh