summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-02-09 00:13:15 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2010-02-09 00:13:15 +0100
commitf5459505a3524e756ea0a1b780cb91296a524de6 (patch)
tree0a38ffddd3dc177dd66fa177eb3c3d28da67280b
parentc780fe59fe96d92ac5114cf5b8daead31ce076b6 (diff)
downloadorg-mode-f5459505a3524e756ea0a1b780cb91296a524de6.tar.gz
Have quote and verse blocks be fontified again
-rwxr-xr-xlisp/ChangeLog7
-rw-r--r--lisp/org-faces.el7
-rw-r--r--lisp/org.el1
3 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b6e9a28..51b2f6b 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
+2010-02-08 Carsten Dominik <carsten.dominik@gmail.com>
+
+ * org.el (org-fontify-meta-lines-and-blocks): Honor
+ `org-fontify-quote-and-verse-blocks'.
+
+ * org-faces.el (org-fontify-quote-and-verse-blocks): New option.
+
2010-02-03 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-open-at-point): Also check for text property
diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index 093905a..4921f6c 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -474,6 +474,13 @@ changes."
(org-copy-face 'org-block 'org-verse
"Face for #+BEGIN_VERSE ... #+END_VERSE blocks.")
+(defcustom org-fontify-quote-and-verse-blocks nil
+ "Non-nil means, add a special face to #+begin_quote and #+begin_verse block.
+When nil, format these as normal Org. This is the default, because the
+content of these blocks will still be treated as Org syntax."
+ :group 'org-faces
+ :type 'boolean)
+
(defface org-clock-overlay ;; copied from secondary-selection
(org-compatible-face nil
'((((class color) (min-colors 88) (background light))
diff --git a/lisp/org.el b/lisp/org.el
index cb91ae3..9134e1d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4635,6 +4635,7 @@ will be prompted for."
(cond
(quoting
(add-text-properties beg1 end1 '(face org-block)))
+ ((not org-fontify-quote-and-verse-blocks))
((string= block-type "quote")
(add-text-properties beg1 end1 '(face org-quote)))
((string= block-type "verse")