diff options
author | Tom Willemse | 2021-10-21 14:26:08 -0700 |
---|---|---|
committer | Tom Willemse | 2021-10-21 14:26:08 -0700 |
commit | 2b22982c2cc4bc13bff717bef2a7697a7b35e213 (patch) | |
tree | f84419c40ddd840718a22c13513b9843875fc296 /oni-gui.el | |
parent | f07e7e6ed0b3b4e977386f6115f570e91621980f (diff) | |
download | emacs-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.el | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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) |