emacs-orgmode
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]