From 90565f2eded81a4a3f908ccce2993274a2618650 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 18 Sep 2012 12:24:05 +0200 Subject: [PATCH] org.el (org-mode): Try to set the org-hide face correctly * org.el (org-mode): Try to set the org-hide face correctly. Thanks to Arne Babenhauserheide for reporting a related problem. --- lisp/org.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index bbb8c4ddd..79eddeb5a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5166,7 +5166,16 @@ The following commands are available: (require 'org-indent) (org-indent-mode 1)) (unless org-inhibit-startup-visibility-stuff - (org-set-startup-visibility)))) + (org-set-startup-visibility))) + ;; Try to set org-hide correctly + (set-face-foreground + 'org-hide + (or (face-background 'default) + (face-background 'org-default) + (cdr (assoc 'background-color default-frame-alist)) + (cdr (assoc 'background-color initial-frame-alist)) + (cdr (assoc 'background-color window-system-default-frame-alist)) + (face-foreground 'org-hide)))) (when (fboundp 'abbrev-table-put) (abbrev-table-put org-mode-abbrev-table -- 2.11.4.GIT