emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] opinion+suggestions: Check boxes on headlines and cookies


From: Sebastian Rose
Subject: Re: [Orgmode] opinion+suggestions: Check boxes on headlines and cookies to take care of this into account...
Date: Fri, 04 Apr 2008 16:22:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Yes, sorry - was just trying this on in exactly this moment :-/

The clocking works too, but then the TODO - STARTED - DONE is added
automatically.

But this one could be corrected by using the hook
org-after-todo-state-change-hook. Some (not very elegant) function like

(defun my-delete-todo-keyword ()
  "Delete todo keyword when DONE"
  (interactive)
 ;; missing code for finding the headline
 (beginning-of-line)            
 (forward-word 1)
 (backward-word 1)
 (if (looking-at "DONE")
     (progn          
       (kill-word 1)
       (delete-char 1))))


(setq org-after-todo-state-change-hook (quote (org-clock-out-if-current 
sr-org-todo-toggle-to-started my-delete-todo-keyword)))





-- 
Sebastian Rose, Hanover, Germany
Phone: +49 173 83 93 417
Mail.: address@hidden, address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]