From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Org-remember items are stored to the wrong headline Date: Wed, 27 Aug 2008 12:24:55 +0200 Message-ID: <87ej4a7o20.fsf@thinkpad.tsdh.de> References: <87hc97t0q7.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYIEl-0000rT-HI for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 06:26:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYIEi-0000qd-SW for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 06:26:50 -0400 Received: from [199.232.76.173] (port=44599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYIEh-0000qH-Lw for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 06:26:48 -0400 Received: from deliver.uni-koblenz.de ([141.26.64.15]:9385) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYIEg-00085x-VQ for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 06:26:47 -0400 In-Reply-To: (Manish's message of "Wed, 27 Aug 2008 15:22:43 +0530") 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: Manish Cc: emacs-orgmode@gnu.org Manish writes: Hi! > > --8<---------------cut here---------------start------------->8--- > > (setq org-default-notes-file "~/repos/org/main.org" > > org-remember-default-headline "Remember" > > org-remember-templates > > '(;; TODOs > > ("todo-template" ?t "* TODO %?\n (created: %U)\n %i\n %a") > > ;; Ideas > > ("idea-template" ?i "* Idea: %^{Title}\n (created: %U)\n %?\n %i\n %a") > > ;; Notes > > ("note-template" ?n "* Note: %?\n (created: %U)\n %i\n %a"))) > > --8<---------------cut here---------------end--------------->8--- > > I took liberty to rephrase the template definition. Seems to work as > you expect it to now. > > (setq org-remember-templates > (quote > (( > ;; TODOs > ("todo-emplate" ?t "* TODO %? \n :CREATED: %U%i\n %a" "~/org/main.org" "Remember") > ;; Ideas > ("idea-template" ?i "* Idea: %^{Title}\n %?\n :CREATED: %U%i\n %a" "~/org/main.org" "Remember") > ;; Notes > ("note-template" ?n "* Note: %?\n :CREATED: %U%i\n %a" "~/org/main.org" "Remember")))) Even if it works with this definition, it's only a workaround. ,----[ C-h v org-remember-templates RET ] | org-remember-templates is a variable defined in `org-remember.el'. [...] | The fourth element is optional and can specify a destination file for | remember items created with this template. The default file is given | by `org-default-notes-file'. If the file name is not an absolute | path, it will be interpreted relative to `org-directory'. | | An optional fifth element can specify the headline in that file that should | be offered first when the user is asked to file the entry. The default | headline is given in the variable `org-remember-default-headline'. When | this element is `top' or `bottom', the note will be placed as a level-1 | entry at the beginning or end of the file, respectively. [...] | You can customize this variable. | | [back] `---- So the 4th and 5th element are optional and should use the values of `org-default-notes-file' and `org-remember-default-headline' if not specified. But that's not done for the headline in my case... Bye, Tassilo -- No person, no idea, and no religion deserves to be illegal to insult, not even the Church of Emacs. (Richard M. Stallman)