From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Buchignani Subject: Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO" Date: Wed, 10 Nov 2010 04:37:43 +0800 Message-ID: References: <874obqnszr.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=41334 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFuxW-0004WZ-5k for Emacs-orgmode@gnu.org; Tue, 09 Nov 2010 15:38:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFuxU-00083f-Vn for Emacs-orgmode@gnu.org; Tue, 09 Nov 2010 15:38:26 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:44072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFuxU-00083Y-Ql for Emacs-orgmode@gnu.org; Tue, 09 Nov 2010 15:38:24 -0500 Received: by wyf23 with SMTP id 23so7866197wyf.0 for ; Tue, 09 Nov 2010 12:38:23 -0800 (PST) In-Reply-To: <874obqnszr.fsf@fastmail.fm> 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: Matt Lundin Cc: Emacs-orgmode@gnu.org Hi Matt, Thanks for your very helpful reply. I know this is a noob question, so please forgive me for taxing your patien= ce... How do I evaluate the statement you supplied for just one file? E.g. I want to evaluate your statement for notes.org, what do I do? Thanks, JB On Wed, Nov 10, 2010 at 4:26 AM, Matt Lundin wrote: > Hi Joseph, > > 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. >> >> 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. >> >> 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. > > Apologies for the late reply, but one simple way to make sure repeating > habits return to a HABIT state is to add a REPEAT_TO_STATE property to > each of your habits. (Of course, HABIT needs to be defined in your > org-todo-keywords.) > > E.g., > > --8<---------------cut here---------------start------------->8--- > * HABIT Run > =A0SCHEDULED: <2010-11-09 Tue .+1d/2d> > =A0:PROPERTIES: > =A0:STYLE: =A0 =A0habit > =A0:REPEAT_TO_STATE: HABIT > =A0:END: > --8<---------------cut here---------------end--------------->8--- > > If you want to do this quickly for all existing habits you could > evaluate the following: > > --8<---------------cut here---------------start------------->8--- > (org-map-entries '(org-set-property "REPEAT_TO_STATE" "HABIT") > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "+STYLE=3D\"HABIT\"" 'agenda) > --8<---------------cut here---------------end--------------->8--- > > Best, > Matt > --=20 Ignore the following. It is a nonsense sentence that disables Google ads from displaying next to my emails by triggering sensitive keywords. I enjoy the massacre of ads. This sentence will slaughter ads without a messy bloodbath.