summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-03-15 13:23:24 +0100
committerBastien Guerry <bzg@altern.org>2013-03-15 13:23:24 +0100
commit791ebc6e7b6025d78332f64788081af7329e2f4f (patch)
treee380d2dad00572db9adb5a66ea807c4526c118b3
parentad95f19be1b2ac952bda004a676d41e951beec88 (diff)
downloadorg-mode-791ebc6e7b6025d78332f64788081af7329e2f4f.tar.gz
Add macros fontifications
* org.el (org-set-font-lock-defaults): Fontify macros. * org-faces.el (org-macro): New face.
-rw-r--r--lisp/org-faces.el11
-rw-r--r--lisp/org.el2
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index eb39d34..833f9ff 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -779,7 +779,16 @@ level org-n-level-faces"
(:foreground "burlywood"))
(t (,@font))))
"Face used to highlight LaTeX data, entities and sub/superscript."
- :group 'org-faces)
+ :group 'org-faces
+ :version "24.4"
+ :package-version '(Org . "8.0"))
+
+(defface org-macro
+ (org-compatible-face 'org-latex-and-related nil)
+ "Face for macros."
+ :group 'org-faces
+ :version "24.4"
+ :package-version '(Org . "8.0"))
(org-copy-face 'mode-line 'org-mode-line-clock
"Face used for clock display in mode line.")
diff --git a/lisp/org.el b/lisp/org.el
index b6a972c..1062587 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6072,6 +6072,8 @@ needs to be inserted at a specific position in the font-lock sequence.")
(list org-any-target-regexp '(0 'org-target t))
;; Diary sexps.
'("^&?%%(.*\\|<%%([^>\n]*?>" (0 'org-sexp-date t))
+ ;; Macro
+ '("{{{.+}}}" (0 'org-macro t))
'(org-hide-wide-columns (0 nil append))
;; TODO keyword
(list (format org-heading-keyword-regexp-format