Re: [Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"

2010-11-09 Thread David Maus
At Wed, 10 Nov 2010 05:17:16 +0800, Joseph Buchignani wrote: > > David, I understand what your second function does, but I'm confused > about what the first one does. > > Does the first function set all habits to have a "return to state" property? Argh, no. I misread the original question. If yo

Re: [Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"

2010-11-09 Thread Joseph Buchignani
David, I understand what your second function does, but I'm confused about what the first one does. Does the first function set all habits to have a "return to state" property? Or does it cause all habits to revert to the "return to state" defined keyword, if it is defined? I was asking how to s

Re: [Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"

2010-11-09 Thread David Maus
Sorry, I couldn't help myself: (defun hb:set-habit-keyword-2 () "*Reset keyword of done habit." (let ((reset-to (org-entry-get nil "REPEAT_TO_STATE"))) (if (and reset-to (string= state "DONE")) (org-todo reset-to (add-hook 'org-after-todo-state-change-hook 'hb:set-habit-keyword

Re: [Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"

2010-11-09 Thread David Maus
At Wed, 10 Nov 2010 04:37:43 +0800, Joseph Buchignani wrote: > > Hi Matt, > > Thanks for your very helpful reply. > > I know this is a noob question, so please forgive me for taxing your > patience... > > How do I evaluate the statement you supplied for just one file? E.g. I > want to evaluate

[Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"

2010-11-09 Thread Joseph Buchignani
Hi Matt, Thanks for your very helpful reply. I know this is a noob question, so please forgive me for taxing your patience... 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

[Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"

2010-11-09 Thread Matt Lundin
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

[Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO"

2010-09-06 Thread Ɓukasz Stelmach
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 trac