emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: insert a remember template at point


From: Shelagh Manton
Subject: [Orgmode] Re: insert a remember template at point
Date: Sat, 29 May 2010 23:05:49 +0000 (UTC)
User-agent: Pan/0.133 (House of Butterflies)

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 address@hidden &][submit for approval/ 
fixes]]
*** TODO   save to text
*** TODO   [[shell:claws-mail address@hidden 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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