From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: SOLVED (was: temporary org-capture-templates) Date: Mon, 14 Mar 2016 10:32:56 +0000 Message-ID: <87a8m1mjs7.fsf@mat.ucm.es> References: <87egbdmk4m.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afPoC-0004do-Cr for emacs-orgmode@gnu.org; Mon, 14 Mar 2016 06:33:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afPo8-0000Ev-5C for emacs-orgmode@gnu.org; Mon, 14 Mar 2016 06:33:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:45088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afPo7-0000Ed-Ud for emacs-orgmode@gnu.org; Mon, 14 Mar 2016 06:33:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1afPo6-0002MT-G5 for emacs-orgmode@gnu.org; Mon, 14 Mar 2016 11:33:02 +0100 Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2016 11:33:02 +0100 Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2016 11:33:02 +0100 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: emacs-orgmode@gnu.org >>> "Uwe" == Uwe Brauer 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))