1
0
Fork 0

[oni-gui] Always setup faces immediately

Since the functions called in ‘oni-gui-setup-faces’ work on either the given
frame or, if given ‘nil’, all future frames, it shouldn’t be a problem to call
it when the Emacs daemon is starting. And since my main org file is loaded
before a frame is created, it doesn’t use the right font otherwise.
This commit is contained in:
Tom Willemse 2021-10-21 14:26:08 -07:00
parent f07e7e6ed0
commit 2b22982c2c

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2021.0911.025144
;; Version: 2021.1021.142026
;; Package-Requires: (oni-ui oni-hydra yoshi-theme diminish)
;; This program is free software; you can redistribute it and/or modify
@ -115,11 +115,10 @@ _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-faces))
(add-hook 'after-make-frame-functions #'oni-gui-setup-ligatures))
(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)