Use (supposedly) faster indent-guides glyph

This commit is contained in:
Henrik Lissner 2020-06-05 14:47:50 -04:00
parent 064df8ace4
commit 68815a6a37
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -4,6 +4,12 @@
:hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode) :hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode)
:init :init
(setq highlight-indent-guides-method 'character) (setq highlight-indent-guides-method 'character)
;; HACK The default \x2502 appears to be slow on macOS. This needs more
;; testing, but for now we use another bar unicode glyph, which is
;; reportedly faster.
(when IS-MAC
(setq highlight-indent-guides-character ?\xFFE8))
:config :config
(defun +indent-guides-init-faces-h () (defun +indent-guides-init-faces-h ()
(when (display-graphic-p) (when (display-graphic-p)