Have quote and verse blocks be fontified again

This commit is contained in:
Carsten Dominik 2010-02-09 00:13:15 +01:00
parent c780fe59fe
commit f5459505a3
3 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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))

View File

@ -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")