From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Customizing checkbox statistics faces Date: Thu, 11 Mar 2010 18:26:45 +0100 Message-ID: References: <4B83EFF4.3000305@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NpmPf-0002Bs-DV for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 12:43:11 -0500 Received: from [140.186.70.92] (port=54025 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpmPd-00027T-JQ for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 12:43:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NpmPZ-00078c-Sp for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 12:43:07 -0500 Received: from mail-ew0-f218.google.com ([209.85.219.218]:38720) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpmPZ-00074I-OD for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 12:43:05 -0500 Received: by mail-ew0-f218.google.com with SMTP id 10so159557ewy.32 for ; Thu, 11 Mar 2010 09:43:05 -0800 (PST) In-Reply-To: <4B83EFF4.3000305@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thomas Jost Cc: emacs-orgmode@gnu.org 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