[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Completely hide the :PROPERTIES: drawer in org-mode.
From: |
Michaël Cadilhac |
Subject: |
Re: [O] Completely hide the :PROPERTIES: drawer in org-mode. |
Date: |
Thu, 14 Feb 2019 16:21:37 +0000 |
On Thu, 14 Feb 2019 at 16:11, Nicolas Goaziou <address@hidden> wrote:
> Would you want to provide a patch including the replacement of
> `org-special-keyword' with `org-drawer'?
Will do. This in particular requires to swap fontifying the drawers
and the keywords (since :END: and :PROPERTIES: are keywords):
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6255,12 +6255,12 @@ needs to be inserted at a specific position in
the font-lock sequence.")
'("^[ \t]*| *\\([#*]\\) *|" (1 'org-formula t))
'("^[ \t]*|\\( *\\([$!_^/]\\) *|.*\\)|" (1 'org-formula t))
'("| *\\(<[lrc]?[0-9]*>\\)" (1 'org-formula t))
- ;; Drawers
- '(org-fontify-drawers)
;; Properties
(list org-property-re
'(1 'org-special-keyword t)
'(3 'org-property-value t))
+ ;; Drawers
+ '(org-fontify-drawers)
;; Link related fontification.
'(org-activate-links)
(when (memq 'tag lk) '(org-activate-tags (1 'org-tag prepend)))
Agreed?
Cheers;
M.
- [O] Completely hide the :PROPERTIES: drawer in org-mode., Keith David Bershatsky, 2019/02/07
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Nicolas Goaziou, 2019/02/12
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Michaël Cadilhac, 2019/02/12
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Nicolas Goaziou, 2019/02/13
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Michaël Cadilhac, 2019/02/13
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Nicolas Goaziou, 2019/02/13
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Michaël Cadilhac, 2019/02/14
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Nicolas Goaziou, 2019/02/14
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode.,
Michaël Cadilhac <=
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Nicolas Goaziou, 2019/02/14
- Re: [O] Completely hide the :PROPERTIES: drawer in org-mode., Marco Wahl, 2019/02/13