* Customizing checkbox statistics faces
@ 2010-02-23 15:10 Thomas Jost
2010-03-11 17:26 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Jost @ 2010-02-23 15:10 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1220 bytes --]
Hello world,
In my TODO-list, I like to have custom colors for TODO keywords, such as
described in http://orgmode.org/worg/org-hacks.php#sec-19.
However I find it annoying to have different colors for the checkbox
statistics: instead of org-checkbox-statistics-done and
org-checkbox-statistics-todo, I'd like to have the same colors as for
the TODO keywords.
In order to do that, I tried to use org-font-lock-hook, I tried to
redefine the org-get-checkbox-statistics-face function, ... but it did
not work, because the regexp used to detect checkbox statistics does not
capture the TODO keyword.
So I wrote a little patch that changes this behavior. It matches the
TODO-keywords too, so that I can redefine
org-get-checkbox-statistics-face in my .emacs to do what I want.
The patch is available in my git repo:
http://code.schnouki.net/p/org-mode/source/commit/937dffeeb112e6ee6d02c0fe31767cee3b57275c/
Could you please merge it in the official git tree?
My .emacs is available on GitHub. The necessary code for customizingthe
checkbox statistics faces is here:
http://github.com/Schnouki/emacs-config/commit/d7ce3da1dbd40b3c4e425d069c3cf17b940644f8
Regards,
--
Thomas/Schnouki
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Customizing checkbox statistics faces
2010-02-23 15:10 Customizing checkbox statistics faces Thomas Jost
@ 2010-03-11 17:26 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-03-11 17:26 UTC (permalink / raw)
To: Thomas Jost; +Cc: emacs-orgmode
Hi Thomas,
I don't think matching the colors of checkbox statistics to the TODO
keyword does not seem to carry useful additional information, so I am
not applying your patch. Maybe the best would be for you to remove
the coloring of these structures alltogether? By customizing the
faces org-checkbox-statistics-* ?
Best wishes, and thanks for your post.
- Carsten
On Feb 23, 2010, at 4:10 PM, Thomas Jost wrote:
> Hello world,
>
> In my TODO-list, I like to have custom colors for TODO keywords,
> such as
> described in http://orgmode.org/worg/org-hacks.php#sec-19.
> However I find it annoying to have different colors for the checkbox
> statistics: instead of org-checkbox-statistics-done and
> org-checkbox-statistics-todo, I'd like to have the same colors as for
> the TODO keywords.
>
> In order to do that, I tried to use org-font-lock-hook, I tried to
> redefine the org-get-checkbox-statistics-face function, ... but it did
> not work, because the regexp used to detect checkbox statistics does
> not
> capture the TODO keyword.
>
> So I wrote a little patch that changes this behavior. It matches the
> TODO-keywords too, so that I can redefine
> org-get-checkbox-statistics-face in my .emacs to do what I want.
>
> The patch is available in my git repo:
> http://code.schnouki.net/p/org-mode/source/commit/937dffeeb112e6ee6d02c0fe31767cee3b57275c/
>
> Could you please merge it in the official git tree?
>
> My .emacs is available on GitHub. The necessary code for
> customizingthe
> checkbox statistics faces is here:
> http://github.com/Schnouki/emacs-config/commit/d7ce3da1dbd40b3c4e425d069c3cf17b940644f8
>
> Regards,
>
> --
> Thomas/Schnouki
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-11 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23 15:10 Customizing checkbox statistics faces Thomas Jost
2010-03-11 17:26 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).