emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] question about capture templates


From: Filippo A. Salustri
Subject: [Orgmode] question about capture templates
Date: Mon, 21 Feb 2011 10:08:56 -0500

Hi,

I would really like to be able to vary the file into which a captured item goes.  Specifically, I'd like to insert the item into whatever file I was visiting when I started the capture.

I've been trying something like this:
("m" "Message" entry (file+datetree (buffer-file-name (buffer-base-buffer))) "* MSG @ %U %?\n %a")

But the (buffer-file-name (buffer-base-buffer)) doesn't work because the item keeps ending up in the default capture file.

Can anyone suggest a way to do this?

Cheers.
Fil Salustri

--
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: address@hidden
http://deseng.ryerson.ca/~fil/

reply via email to

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