emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* SOLVED: clock in after org-remember based on TODO
@ 2009-04-09 16:41 Deric Bytes
  0 siblings, 0 replies; only message in thread
From: Deric Bytes @ 2009-04-09 16:41 UTC (permalink / raw)
  To: emacs-orgmode

I couldn't find any documentation on how to do it. Here's the code I
modified from an answer to a slightly different question.

;; start the clock if there is a STARTED todo tag is in your remember template
(add-hook 'org-remember-before-finalize-hook 'my-start-clock-if-needed)
(defun my-start-clock-if-needed ()
     (goto-char (point-min))
    (when (re-search-forward "* STARTED" nil t)

;; an example remember template
  (setq org-remember-templates
      '(("Task" ?t "* %^{Task status|TODO|STARTED|SUBTASK} %^{Brief
Description} %^G\n %^{subject}p  %^{other-subjects}p
%^{sub-subjects}p  %^{keywords}p %?\nCalled from: %a\nAdded: %U "

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-09 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 16:41 SOLVED: clock in after org-remember based on TODO Deric Bytes

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).