diff options
author | Bastien Guerry <bzg@altern.org> | 2013-03-15 13:23:24 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-03-15 13:23:24 +0100 |
commit | 791ebc6e7b6025d78332f64788081af7329e2f4f (patch) | |
tree | e380d2dad00572db9adb5a66ea807c4526c118b3 | |
parent | ad95f19be1b2ac952bda004a676d41e951beec88 (diff) | |
download | org-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.el | 11 | ||||
-rw-r--r-- | lisp/org.el | 2 |
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 |