doom-folded-face => +doom-folded-face

This commit is contained in:
Henrik Lissner 2017-02-20 00:10:10 -05:00
parent 26b5b2d6df
commit 409b604d5b
2 changed files with 8 additions and 7 deletions

View file

@ -94,7 +94,7 @@
org-blank-before-new-entry '((heading . nil) (plain-list-item . auto)) org-blank-before-new-entry '((heading . nil) (plain-list-item . auto))
org-cycle-separator-lines 1 org-cycle-separator-lines 1
org-cycle-include-plain-lists t org-cycle-include-plain-lists t
org-ellipsis 'doom-folded-face org-ellipsis '+doom-folded-face
org-entities-user '(("flat" "\\flat" nil "" "" "266D" "") org-entities-user '(("flat" "\\flat" nil "" "" "266D" "")
("sharp" "\\sharp" nil "" "" "266F" "")) ("sharp" "\\sharp" nil "" "" "266F" ""))
org-fontify-done-headline t org-fontify-done-headline t

View file

@ -44,6 +44,12 @@
:config :config
(load-theme +doom-theme t) (load-theme +doom-theme t)
(defface +doom-folded-face
`((t (:inherit font-lock-comment-face
:background ,(face-background 'default))))
"Face to hightlight `hideshow' overlays."
:group 'doom)
(nconc default-frame-alist (nconc default-frame-alist
`((background-color . ,(face-background 'default)) `((background-color . ,(face-background 'default))
(foreground-color . ,(face-foreground 'default)))) (foreground-color . ,(face-foreground 'default))))
@ -95,16 +101,11 @@
(@after hideshow (@after hideshow
;; Nicer code-folding overlays ;; Nicer code-folding overlays
(defface doom-folded-face
'((t (:foreground "#555" :background "#888")))
"Face to hightlight `hideshow' overlays."
:group 'hideshow)
(setq hs-set-up-overlay (setq hs-set-up-overlay
(lambda (ov) (lambda (ov)
(when (eq 'code (overlay-get ov 'hs)) (when (eq 'code (overlay-get ov 'hs))
(overlay-put (overlay-put
ov 'display (propertize " [...] " 'face 'doom-folded-face)))))) ov 'display (propertize " [...] " 'face '+doom-folded-face))))))
;; subtle diff indicators in the fringe ;; subtle diff indicators in the fringe