tweak(indent-guides): default to bitmap in GUI

This commit is contained in:
Henrik Lissner 2023-12-05 17:41:59 -05:00
parent fcd95a09d0
commit 6edb9dfc77
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -2,7 +2,9 @@
(use-package! highlight-indent-guides (use-package! highlight-indent-guides
:hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode) :hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode)
:init (setq highlight-indent-guides-method 'character) :init
(setq highlight-indent-guides-method (if (display-graphic-p) 'bitmap 'character)
highlight-indent-guides-bitmap-function #'highlight-indent-guides--bitmap-line)
:config :config
;; HACK: If this package is loaded too early (by the user, and in terminal ;; HACK: If this package is loaded too early (by the user, and in terminal
;; Emacs), then `highlight-indent-guides-auto-set-faces' will have been ;; Emacs), then `highlight-indent-guides-auto-set-faces' will have been