Browse Source

Have quote and verse blocks be fontified again

Carsten Dominik 15 years ago
parent
commit
f5459505a3
3 changed files with 15 additions and 0 deletions
  1. 7 0
      lisp/ChangeLog
  2. 7 0
      lisp/org-faces.el
  3. 1 0
      lisp/org.el

+ 7 - 0
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

+ 7 - 0
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))

+ 1 - 0
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")