From a0bd2014f36884fee71275b771bcb3ce6e068de6 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 28 Oct 2021 20:23:36 -0700 Subject: [PATCH] [oni-gui] Use a hook to setup the variable and fixed-pitch faces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the ‘set-face-attribute’ function documentation says that if you use ‘nil’ as the FRAME argument, you set the face attribute for all current and future frames. However this doesn’t seem to work for my setup at all, the variable pitch font is still “Sans Serif” when I open the first frame. --- oni-gui.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/oni-gui.el b/oni-gui.el index a586d61..3e87140 100644 --- a/oni-gui.el +++ b/oni-gui.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.1021.142026 +;; Version: 2021.1028.202333 ;; Package-Requires: (oni-ui oni-hydra yoshi-theme diminish) ;; This program is free software; you can redistribute it and/or modify @@ -115,10 +115,11 @@ _bi_: Auto Insert ^^ ^^ (if (daemonp) (progn (add-hook 'after-make-frame-functions #'oni-gui-setup-fontsets) - (add-hook 'after-make-frame-functions #'oni-gui-setup-ligatures)) + (add-hook 'after-make-frame-functions #'oni-gui-setup-ligatures) + (add-hook 'after-make-frame-functions #'oni-gui-setup-faces)) (oni-gui-setup-fontsets nil) - (oni-gui-setup-ligatures)) -(oni-gui-setup-faces nil) + (oni-gui-setup-ligatures) + (oni-gui-setup-faces nil)) (global-unset-key (kbd "C-z")) (global-set-key (kbd "C-c c") 'oni-gui-hydra/body)