From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Re: insert todo from agenda? Date: Mon, 16 Jun 2008 08:46:14 +0530 Message-ID: References: <87lk16a5f0.fsf@mixandgo.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K85Ce-00060Y-Dt for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:16:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K85Cc-0005xW-8s for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:16:19 -0400 Received: from [199.232.76.173] (port=57616 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K85Cc-0005xM-48 for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:16:18 -0400 Received: from ti-out-0910.google.com ([209.85.142.188]:18120) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K85Cb-0002fj-F8 for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:16:17 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1546132tia.10 for ; Sun, 15 Jun 2008 20:16:14 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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: Richard G Riley Cc: Cezar Halmagean , emacs-orgmode@gnu.org May be I misunderstood but it seems following setup does all that you want (and more). Please see below. ,----[ Relevant setup ] | (defun my-start-clock-if-needed () | (save-excursion | (goto-char (point-min)) | (when (re-search-forward ":CLOCK-IN:" nil t) | (replace-match "") | (org-clock-in)))) | | (setq org-remember-templates | (quote | ( | ("Client1 Task" ?g "* NEWTASK %? %^g %&\n SCHEDULED: %t\n :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client1.org" "Unprocessed Tasks") | ("Client2 Task" ?G "* NEWTASK %? %^g %& \n SCHEDULED: %t\n :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client2.org" "Unprocessed Tasks") | ("Personal Tasks" ?p "* NEWTASK %? %& \n SCHEDULED: %t\n :CLOCK-IN:\n CREATED: %U\n" "~/org.git/personal.org" "Unprocessed Tasks") | ("Appointment @ Client1" ?a "* APPT %? %& \n SCHEDULED: %^{At: }T\n :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client1.org" "New Appointments") | ("Appointment @ Client2" ?A "* APPT %? %& \n SCHEDULED: %^T{At: }\n :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client2.org" "New Appointments") | ("Notes" ?n "* %?\n %a\n CREATED: %U\n" "~/org.git/notes.org" "Notes") | ("Journal" 106 "\n* JOURNAL Entry at %U\n %?" "~/org.git/journal.org" "Journal") | ))) `---- This setup: - schedules the task by default for today (%t) - records the date the task was created (%T) - prompts for tags (%^g) - start the clock when you start creating the task and offer to clock out when you save the task (:CLOCK-IN: and my-start-clock-if-needed) - takes you to the location the task is being filed when you save (%&). You can then refile it using org-refile. (C-c C-w by default.) This works irrespective of the buffer you are in (you need not be in ageda.) Thanks to Bernt for much of this setup and ideas. Please do see sec. #9 for more details. It lets you be pretty creative. Best, -- Manish