1
0
Fork 0

[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.
This commit is contained in:
Tom Willemse 2021-10-28 20:23:36 -07:00
parent 05cb65c4aa
commit a0bd2014f3

View file

@ -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)