thaylen-city: Add preferred fonts

This commit is contained in:
Charlotte Van Petegem 2024-07-25 14:18:28 +02:00
parent 907bf24ad4
commit fc12b60c91
3 changed files with 20 additions and 10 deletions

View file

@ -2,20 +2,11 @@
:ensure nil ;; Not a real package, but a place to collect global settings for linux
:demand t
:config
;; Font configuration
(defun font-settings ()
"Setup font settings."
(when window-system (set-frame-font "Hack 9"))
(set-fontset-font t 'symbol "Noto Color Emoji")
(set-fontset-font t 'symbol "Symbola" nil 'append))
;; Make sure DISPLAY is set correctly in env.
(defun display-env-hack ()
"Hack DISPLAY env variable back into env."
(setenv "DISPLAY" ":0")
)
(if (daemonp)
(progn
(add-hook 'server-after-make-frame-hook #'font-settings)
(add-hook 'server-after-make-frame-hook #'display-env-hack))
(font-settings))
(add-hook 'server-after-make-frame-hook #'display-env-hack))
)