Fix doom-fix-unicode

This commit is contained in:
Henrik Lissner 2016-06-03 00:59:04 -04:00
parent 1155097541
commit 7cbc9b1157
4 changed files with 8 additions and 3 deletions

View file

@ -332,8 +332,8 @@ Examples:
e.g. (doom-fix-unicode \"DejaVu Sans\" '(?⚠ ?★ ?➊ ?➋ ?➌ ?➍ ?➎ ?❻ ?➐ ?➑ ?➒ ?➓))" e.g. (doom-fix-unicode \"DejaVu Sans\" '(?⚠ ?★ ?➊ ?➋ ?➌ ?➍ ?➎ ?❻ ?➐ ?➑ ?➒ ?➓))"
(mapc (lambda (x) (set-fontset-font (mapc (lambda (x) (set-fontset-font
"fontset-default" `(,x . ,x) t (cons x x)
(font-spec :name font :size size) nil 'prepend)) (font-spec :name font :size size)))
chars)) chars))
(defun doom-byte-compile (&optional minimal) (defun doom-byte-compile (&optional minimal)

View file

@ -9,6 +9,8 @@
flycheck-disabled-checkers '(emacs-lisp emacs-lisp-checkdoc make)) flycheck-disabled-checkers '(emacs-lisp emacs-lisp-checkdoc make))
:config :config
;; Display warning symbol unicode better
(doom-fix-unicode "DejaVu Sans Mono" '(?⚠) 18)
(def-popup! " ?\\*Flycheck.+\\*" :align below :size 14 :noselect t :regexp t) (def-popup! " ?\\*Flycheck.+\\*" :align below :size 14 :noselect t :regexp t)
(unless (> emacs-major-version 24) (unless (> emacs-major-version 24)

View file

@ -66,7 +66,8 @@
(set-fringe-bitmap-face 'tilde 'fringe) (set-fringe-bitmap-face 'tilde 'fringe)
(setcdr (assq 'empty-line fringe-indicator-alist) 'tilde) (setcdr (assq 'empty-line fringe-indicator-alist) 'tilde)
;; Fix certain unicode characters without upsetting line-height ;; Fix certain unicode characters without upsetting line-height
(doom-fix-unicode "DejaVu Sans" '(?⚠ ?★ ?➊ ?➋ ?➌ ?➍ ?➎ ?❻ ?➐ ?➑ ?➒ ?➓))) (doom-fix-unicode "DejaVu Sans Mono" '(?★) 13)
(doom-fix-unicode "Hack" '() 13))
;; Hide mode-line in help/compile window ;; Hide mode-line in help/compile window
(add-hook 'help-mode-hook 'doom|hide-mode-line) (add-hook 'help-mode-hook 'doom|hide-mode-line)

View file

@ -151,6 +151,8 @@
;; "** %i%?\n") ;; "** %i%?\n")
)) ))
;; Display certain unicode characters properly
(doom-fix-unicode "DejaVu Sans" '(?⟳) 13)
(doom-fix-unicode "DejaVu Sans" '(?♭ ?♯)) (doom-fix-unicode "DejaVu Sans" '(?♭ ?♯))
(doom-fix-unicode "Hack" '(?× ?∙ ?⌉ ?⌈ ?⌊ ?⌋ (doom-fix-unicode "Hack" '(?× ?∙ ?⌉ ?⌈ ?⌊ ?⌋
?∩ ? ?⊆ ?⊂ ?⊄ ?⊇ ?⊃ ?⊅ ?∩ ? ?⊆ ?⊂ ?⊄ ?⊇ ?⊃ ?⊅