:ui unicode module improvements
+ Add documentation + Add support for doom-unicode-font as default candidate for non-latin glyphs. Fixes https://github.com/hlissner/doom-emacs/issues/3329
This commit is contained in:
parent
9edd4f26f3
commit
6040feaa9a
2 changed files with 96 additions and 3 deletions
|
@ -1,5 +1,13 @@
|
|||
;;; ui/unicode/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +unicode--add-doom-unicode-font ()
|
||||
"Include doom-unicode font as the top suggested font for unicode glyphs for all blocks"
|
||||
(when doom-unicode-font
|
||||
(let ((doom-unicode-font-family (plist-get (font-face-attributes doom-unicode-font) :family)))
|
||||
(dolist (unicode-block unicode-fonts-block-font-mapping)
|
||||
(push doom-unicode-font-family (cadr unicode-block))))))
|
||||
|
||||
;;;###autoload
|
||||
(add-hook! 'doom-init-ui-hook
|
||||
(defun +unicode-init-fonts-h ()
|
||||
|
@ -18,4 +26,5 @@ necessary."
|
|||
(with-selected-frame frame
|
||||
(require 'unicode-fonts)
|
||||
;; NOTE will impact startup time on first run
|
||||
(+unicode--add-doom-unicode-font)
|
||||
(unicode-fonts-setup))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue