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:
parent
9a6bcc31f9
commit
89f5af8104
2 changed files with 5 additions and 11 deletions
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue