From f9cea3ea1e48a9346a26ad0ac0614b37fb85b381 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 29 Mar 2012 12:42:35 +0200 Subject: [PATCH] org.el: Use `buffer-face-mode' to remap the 'default face to 'org-default. * org.el (org-mode): Use `buffer-face-mode' to remap the 'default face to 'org-default. Thanks to Du Yanning for raising an issue that this patch circumvents. --- lisp/org.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index bfc65f50f..800778e64 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5025,8 +5025,9 @@ The following commands are available: (set (make-local-variable 'pcomplete-parse-arguments-function) 'org-parse-arguments) (set (make-local-variable 'pcomplete-termination-string) "") - (set (make-local-variable 'face-remapping-alist) - '((default org-default))) + (when (>= emacs-major-version 23) + (set (make-local-variable 'buffer-face-mode-face) 'org-default) + (buffer-face-mode)) ;; If empty file that did not turn on org-mode automatically, make it to. (if (and org-insert-mode-line-in-empty-file -- 2.11.4.GIT