[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 14:16:20 +0000 |
Hi there;
Again, thanks for your help Nicolas—that's much appreciated.
On Wed, 13 Feb 2019 at 15:55, Nicolas Goaziou <address@hidden> wrote:
> The face you use for drawers is, well obnoxious, to say the least. No
> wonder you find them cluttering your display.
I agree; following your advice, I took the simpler path of customizing
org-special-keyword. By changing its height, I got a small glitch;
consider:
https://michael.cadilhac.name/public/org-props-small-1.png
The lines with ":PROPERTIES:" did not change height; this is simply
due to the line-feed having the default face. With:
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5934,7 +5934,7 @@ by a #."
"Fontify drawers."
(when (re-search-forward org-drawer-regexp limit t)
(add-text-properties
- (match-beginning 0) (match-end 0)
+ (match-beginning 0) (+ 1 (match-end 0))
'(font-lock-fontified t face org-special-keyword))
(org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
t))
I get the desired outcome:
https://michael.cadilhac.name/public/org-props-small-2.png
(this is also where org-special-keyword should be replaced with org-drawer.)
Any thoughts?
Thanks!
Michaël
- [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 <=
- 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, 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., Marco Wahl, 2019/02/13