diff options
author | Bastien Guerry <bzg@altern.org> | 2011-07-06 17:25:29 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-07-06 17:25:29 +0200 |
commit | 7a88eaec295d50a6e27cc1d6b6f1a725ace01076 (patch) | |
tree | 91e803908793a91bb614a775c599dda172c72385 | |
parent | c6b22dee33fa418b344fa68bf36bb496db473a89 (diff) | |
download | org-mode-7a88eaec295d50a6e27cc1d6b6f1a725ace01076.tar.gz |
New face: org-default.
* install/git/org-mode/lisp/org.el (org-mode): Use org-default as
the default face in org-mode.
* install/git/org-mode/lisp/org-faces.el (org-default): New face.
M-x customize-face RET org-default RET lets the user define a default
face for org-mode.
-rw-r--r-- | lisp/org-faces.el | 5 | ||||
-rw-r--r-- | lisp/org.el | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/org-faces.el b/lisp/org-faces.el index 7bb3055..31b59c6 100644 --- a/lisp/org-faces.el +++ b/lisp/org-faces.el @@ -51,6 +51,11 @@ :tag "Org Faces" :group 'org-appearance) +(defface org-default + (org-compatible-face 'default nil) + "Face used for default text." + :group 'org-faces) + (defface org-hide '((((background light)) (:foreground "white")) (((background dark)) (:foreground "black"))) diff --git a/lisp/org.el b/lisp/org.el index a773ca1..7a4a771 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4829,6 +4829,8 @@ 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))) ;; If empty file that did not turn on org-mode automatically, make it to. (if (and org-insert-mode-line-in-empty-file |