Emacs: Use system default font from Xresources
Alan Pearce alan@alanpearce.eu
Fri, 08 Sep 2017 23:20:05 +0200
2 files changed, 3 insertions(+), 7 deletions(-)
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -223,10 +223,6 @@ (if (eq displays 1) (ap/set-fonts "Fira Code" 14 "Lucida Grande" 14 t nil) (ap/set-fonts "Monoid" 12 "Helvetica Neue" 12 t 0.1)))) ((and (eq window-system 'x) - (not (eq system-type 'gnu/linux/windows))) - (set-fontset-font "fontset-default" 'unicode (font-spec :name "PT Mono" :size 14)) - (ap/set-fonts "PT Mono" 14 "Noto Sans" 14 nil)) - ((and (eq window-system 'x) (eq system-type 'gnu/linux/windows)) (ap/set-fonts "Noto Mono" 12 "Sans" 12 nil)))))
M xresources/.xresources/main → xresources/.xresources/main
@@ -28,9 +28,9 @@ URxvt.pointerBlank: true URxvt.pointerBlankDelay: 987654321 URxvt.letterSpace: 0 -Emacs.Font: -Misc-Fixed-normal-normal-normal-*-14-*-*-*-c-70-iso10646-1 -Emacs.fixed-pitch.attributeFont: -Misc-Fixed-normal-normal-normal-*-14-*-*-*-c-70-iso10646-1 -Emacs.variable-pitch.attributeFont: -*-PT Sans-medium-r-*-*-14-*-*-*-*-*-*-* +Emacs.Font: monospace-10 +Emacs.fixed-pitch.attributeFont: monospace-10 +Emacs.variable-pitch.attributeFont: sans-10 ! Local Variables: ! compile-command: (concat "xrdb -merge " (shell-quote-argument buffer-file-name))