2017-06-08 14:27:06 +02:00
|
|
|
;;; ui/unicode/config.el -*- lexical-binding: t; -*-
|
2017-06-08 14:17:52 +02:00
|
|
|
|
|
|
|
(def-package! unicode-fonts
|
2017-06-28 16:18:22 +02:00
|
|
|
:init
|
|
|
|
(setq-default bidi-display-reordering t
|
|
|
|
doom-unicode-font nil)
|
2017-10-18 00:58:32 +02:00
|
|
|
|
|
|
|
(defun +unicode|init-fonts (&optional frame)
|
|
|
|
"Initialize `unicode-fonts', if in a GUI session."
|
2017-11-29 20:39:11 +08:00
|
|
|
(when (and frame (display-graphic-p frame))
|
2017-10-18 00:58:32 +02:00
|
|
|
(with-selected-frame frame
|
|
|
|
(require 'unicode-fonts)
|
|
|
|
;; NOTE will impact startup time on first run
|
|
|
|
(unicode-fonts-setup))))
|
|
|
|
|
|
|
|
(add-hook! 'after-init-hook
|
|
|
|
(if initial-window-system
|
|
|
|
(+unicode|init-fonts)
|
|
|
|
(add-hook 'after-make-frame-functions #'+unicode|init-fonts))))
|