lang/org: respect inherited foreground in eldoc

This commit is contained in:
Henrik Lissner 2018-08-04 18:23:53 +02:00
parent 552b8b50c0
commit d504c4bafe
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -365,7 +365,7 @@ conditions where a window's buffer hasn't changed at the time this hook is run."
for seg in (delq nil path)
for face = (nth (% (cl-incf i) org-n-level-faces) org-level-faces)
collect (propertize (replace-regexp-in-string "[ \t]+\\'" "" seg)
'face (if face `(:foreground ,(face-foreground face)))))
'face (if face `(:foreground ,(face-foreground face nil t)))))
separator))))
(funcall orig-fn)))
(advice-add #'org-eldoc-get-breadcrumb :around #'+org*fix-font-size-variation-in-eldoc)