aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-10-28 20:23:36 -0700
committerGravatar Tom Willemse2021-10-28 20:23:36 -0700
commita0bd2014f36884fee71275b771bcb3ce6e068de6 (patch)
tree49479e1526373f3bdb43e0c88d1a5b2a83822050
parent05cb65c4aa45c0d58cbf6daef03e31e3a4e0c923 (diff)
downloademacs-config-a0bd2014f36884fee71275b771bcb3ce6e068de6.tar.gz
emacs-config-a0bd2014f36884fee71275b771bcb3ce6e068de6.zip
[oni-gui] Use a hook to setup the variable and fixed-pitch faces
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.
-rw-r--r--oni-gui.el9
1 files 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 <tom@ryuslash.org>
;; 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)