2018-05-25 00:46:11 +02:00
|
|
|
;;; ui/unicode/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;;###autoload
|
2019-07-28 14:52:59 +02:00
|
|
|
(add-hook! 'doom-init-ui-hook
|
2019-07-22 04:46:14 +02:00
|
|
|
(defun +unicode-init-fonts-h ()
|
|
|
|
"Set up `unicode-fonts' to eventually run; accomodating the daemon, if
|
2018-05-25 00:46:11 +02:00
|
|
|
necessary."
|
2019-07-22 04:46:14 +02:00
|
|
|
(setq-default bidi-display-reordering t
|
|
|
|
doom-unicode-font nil)
|
|
|
|
(if initial-window-system
|
|
|
|
(+unicode-setup-fonts-h (selected-frame))
|
|
|
|
(add-hook 'after-make-frame-functions #'+unicode-setup-fonts-h))))
|
2018-05-25 00:46:11 +02:00
|
|
|
|
|
|
|
;;;###autoload
|
2019-07-22 04:46:14 +02:00
|
|
|
(defun +unicode-setup-fonts-h (&optional frame)
|
2018-05-25 00:46:11 +02:00
|
|
|
"Initialize `unicode-fonts', if in a GUI session."
|
|
|
|
(when (and frame (display-graphic-p frame))
|
|
|
|
(with-selected-frame frame
|
|
|
|
(require 'unicode-fonts)
|
|
|
|
;; NOTE will impact startup time on first run
|
|
|
|
(unicode-fonts-setup))))
|