From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: prompt for deadline in capture template? Date: Sun, 25 Oct 2015 07:34:00 +0100 Message-ID: References: <874mhh7i7y.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqErH-00041d-TM for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 02:32:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqErE-0002px-Mq for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 02:32:47 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:43021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqErE-0002pt-GL for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 02:32:44 -0400 In-reply-to: <874mhh7i7y.fsf@fastmail.fm> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: Xebar Saram , org mode , John Kitchin Matt Lundin writes: >> Xebar Saram writes: >> >>> Hi guys >>> >>> i looked in the capture docu but couldn't seem to find it. anyone knows how >>> to prompt for deadline in capture template? > > If you want to do it more pragmatically, you could use something like > this (adjust the template as needed). > > (add-to-list 'org-capture-templates > '("d" "Deadline" entry > (file "~/org/inbox.org") > "* %^{Headline}\n DEADLINE: %^t")) > > See (info "(org) Template expansion") My template for work projects includes this fragment: "* TODO %^{Title} %^g\n SCHEDULED: %^{Scheduled to begin}t DEADLINE: %^{Deadline}T\n [...]" Note the t's after the prompts, asking specifically for the date (t) to start work and and date + time (T) for the deadline. Yours, Christian