# HG changeset patch # User Yuya Nishihara # Date 1716615617 -32400 # Sat May 25 14:40:17 2024 +0900 # Node ID 18a30e43152b3140c206e00b9fca110e468b2f28 # Parent 898a60a8ee978e5508de027db41943ce1d7c2a6e emacs: use set-frame-font to configure default font Appears that this works on Wayland version of emacs daemon. diff --git a/dot.Xresources b/dot.Xresources --- a/dot.Xresources +++ b/dot.Xresources @@ -1,4 +1,3 @@ ! xrdb -merge ~/.Xresouces -Emacs*font: DejaVu Sans Mono-10 Emacs.geometry: 110x62 !Emacs.UseXIM: off diff --git a/dot.emacs b/dot.emacs --- a/dot.emacs +++ b/dot.emacs @@ -159,8 +159,7 @@ (defun fix-font-and-face () (when (window-system) - (add-to-list 'default-frame-alist - '(font . "DejaVu Sans Mono-10")) ; see also ~/.Xresources + (set-frame-font "DejaVu Sans Mono-10") (set-fontset-font (frame-parameter nil 'font) 'japanese-jisx0208 (font-spec :family "KonatuTohaba" :size 16)))