From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shelagh Manton Subject: Re: insert a remember template at point Date: Sat, 29 May 2010 23:05:49 +0000 (UTC) Message-ID: References: <87d3wes6uf.fsf@eraldo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=41335 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIV6P-00013v-D6 for emacs-orgmode@gnu.org; Sat, 29 May 2010 19:06:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIV6N-0004Nm-OT for emacs-orgmode@gnu.org; Sat, 29 May 2010 19:06:01 -0400 Received: from lo.gmane.org ([80.91.229.12]:58014) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIV6N-0004NZ-JA for emacs-orgmode@gnu.org; Sat, 29 May 2010 19:05:59 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OIV6K-0002QF-Q4 for emacs-orgmode@gnu.org; Sun, 30 May 2010 01:05:56 +0200 Received: from 203.219.222.168 ([203.219.222.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 May 2010 01:05:56 +0200 Received: from shelagh.manton by 203.219.222.168 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 May 2010 01:05:56 +0200 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: emacs-orgmode@gnu.org On Sun, 30 May 2010 00:04:08 +0200, Eraldo Helal wrote: > How can I insert a remember template at point? > > Until now I had identical remember templates and yasnippets. This is > only a workaround and I would prefer to be able to insert a remember > template at point since I have found it to have features I could not > reproduce. I had this problem about a year ago. The trick is to insert a function that returns the strings you need. For example this is the function I used. (defun org-csa () ;this strange function only *returns* the desired ;text, not inserts to the buffer. " :PROPERTIES: :ORDERED: t :END: *** TODO [[ooo:\"CSA Template.ott\" &][fill out template form]] *** TODO [[shell:claws-mail pm@example.com.au &][submit for approval/ fixes]] *** TODO save to text *** TODO [[shell:claws-mail dr@example.com][send it to Darren]]") Then you make your remember template call this function. Like this: ("CSA" ?C "* TODO %^{topic} [/] %^g\n %t\n %(org-csa) \n %&" "~/.org/ CSA.org" bottom) Cheers Shelagh > Greetings from Austria, > Eraldo > > _______________________________________________ Emacs-orgmode mailing > list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode