emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* temporary org-capture-templates
@ 2016-03-14 10:25 Uwe Brauer
  2016-03-14 10:32 ` SOLVED (was: temporary org-capture-templates) Uwe Brauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2016-03-14 10:25 UTC (permalink / raw)
  To: emacs-orgmode


Hi

I would like to one entry for the org-capture-templates
which will prompt for the file I want to save the capture.

So I tried 

(setq org-capture-templates
'(
("G" "Generic" table-line (file+headline (read-string "Name of file: " "Generic")
"|%f| %U|%A|" :prepend t))))

But it does not work.

Any suggestions?

Thanks

Uwe Brauer 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* SOLVED (was: temporary org-capture-templates)
  2016-03-14 10:25 temporary org-capture-templates Uwe Brauer
@ 2016-03-14 10:32 ` Uwe Brauer
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Brauer @ 2016-03-14 10:32 UTC (permalink / raw)
  To: emacs-orgmode

>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:

   > Hi

   > I would like to one entry for the org-capture-templates
   > which will prompt for the file I want to save the capture.

   > So I tried 

   > (setq org-capture-templates
   > '(
   > ("G" "Generic" table-line (file+headline (read-string "Name of file: " "Generic")
   > "|%f| %U|%A|" :prepend t))))

My bad forgot )

So this works nicely
 (setq org-capture-templates
 '(
("G" "Generic" table-line (file+headline (expand-file-name (read-string "Name of file: ")) "Generic")
		 "|%f| %U|%A|" :prepend t))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-14 10:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-14 10:25 temporary org-capture-templates Uwe Brauer
2016-03-14 10:32 ` SOLVED (was: temporary org-capture-templates) Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).