From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz?= Stelmach Subject: Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO" Date: Tue, 07 Sep 2010 00:09:19 +0200 Message-ID: <87eid6sewg.fsf@kotik.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=60522 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Osjsa-0006rB-VX for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 18:09:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsjsZ-0004tP-Mx for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 18:09:32 -0400 Received: from lo.gmane.org ([80.91.229.12]:54016) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsjsZ-0004tF-At for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 18:09:31 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OsjsY-0004O3-Mf for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 00:09:30 +0200 Received: from 77-254-60-205.adsl.inetia.pl ([77.254.60.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Sep 2010 00:09:30 +0200 Received: from lukasz.stelmach by 77-254-60-205.adsl.inetia.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Sep 2010 00:09:30 +0200 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: emacs-orgmode@gnu.org Joseph Buchignani writes: > Summary: I would like habits to automatically be marked as the todo keyword > "HABIT" instead of "TODO" after I mark them "DONE" > > Reasons: > I want to keep my habits separate from my tasks. But they display together > on my TODO list. This makes it hard to keep track of what's a habit and > what's not. You can exclude from your TODO list all entris with a STYLE propert equal `habit'. > I could change a setting so that scheduled tasks are no longer considered > open. But then I lose the ability to see all my habits in a list on the TODO > view. > > Also, I like to see habits clearly marked HABIT instead of TODO in my org > outline. That's a much better reason. > Keeping the keywords separated fits better with my workflow. Normally I only > need to work on habits from within the org agenda, not the todo list. For > example, I start the day by executing scheduled tasks, then priority A > tasks, then priority A habits, etc. > > Is there some setting I can change to do this? Right now I am doing it > manually. I'd try putting habits in a separate file with its own set of TODO kewords defined in a line beginning with `#+SEQ_TODO'. You can also try defining a different DONE keyword for habits together with HABIT and use it as a TODO keyword sequence as described here. http://orgmode.org/manual/Multiple-sets-in-one-file.html#Multiple-sets-in-one-file I am sure someone with more moxie and bigger mojo than me (at least for now i.e. 00:08 CEST) could come up with a function you could add to org-after-todo-state-change-hook that does exactly what you want. -- Miłego dnia, Łukasz Stelmach