refactor(fold): move +fold-hideshow-folded-face & unstyle +ts-fold-replacement-face

It is the theme(s) jurisdiction to impose modify external faces.
`custom-set-faces!` should be avoided from within modules, in general.
This commit is contained in:
Henrik Lissner 2024-08-26 19:36:10 -04:00
parent 9a6bcc31f9
commit 89f5af8104
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 5 additions and 11 deletions

View file

@ -1,10 +1,5 @@
;;; editor/fold/autoload/hideshow.el -*- lexical-binding: t; -*-
(defface +fold-hideshow-folded-face
`((t (:inherit font-lock-comment-face :weight light)))
"Face to hightlight `hideshow' overlays."
:group 'doom-themes)
;;;###autoload
(defun +fold-hideshow-haml-forward-sexp-fn (arg)
(haml-forward-sexp arg)

View file

@ -8,6 +8,11 @@ this."
:type 'string
:group '+fold)
(defface +fold-hideshow-folded-face
`((t (:inherit font-lock-comment-face :weight light)))
"Face to hightlight `hideshow' overlays."
:group 'doom-themes)
;;
;;; Global config
@ -109,11 +114,5 @@ this."
:when (modulep! :tools tree-sitter)
:after tree-sitter
:config
;; we want to use our own face so we nullify this one to have no effect and
;; make it more similar to hideshows
(custom-set-faces! '(ts-fold-replacement-face :foreground unspecified
:box nil
:inherit font-lock-comment-face
:weight light))
(setq ts-fold-replacement +fold-ellipsis)
(global-ts-fold-mode +1))