aboutsummaryrefslogtreecommitdiffstats
path: root/oni-gui.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-10-21 14:26:08 -0700
committerGravatar Tom Willemse2021-10-21 14:26:08 -0700
commit2b22982c2cc4bc13bff717bef2a7697a7b35e213 (patch)
treef84419c40ddd840718a22c13513b9843875fc296 /oni-gui.el
parentf07e7e6ed0b3b4e977386f6115f570e91621980f (diff)
downloademacs-config-2b22982c2cc4bc13bff717bef2a7697a7b35e213.tar.gz
emacs-config-2b22982c2cc4bc13bff717bef2a7697a7b35e213.zip
[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.
Diffstat (limited to 'oni-gui.el')
-rw-r--r--oni-gui.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/oni-gui.el b/oni-gui.el
index 2a52026..a586d61 100644
--- a/oni-gui.el
+++ b/oni-gui.el
@@ -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)