From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: insert a remember template at point Date: Tue, 1 Jun 2010 09:54:44 +0200 Message-ID: <56248DEB-DDB7-4C9C-9D05-AB6D417F4212@gmail.com> References: <87d3wes6uf.fsf@eraldo.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57646 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJMoE-0005MU-47 for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 04:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJMo9-0003WM-Ku for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 04:26:49 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:57267) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJMo9-0003W5-Ga for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 04:26:45 -0400 Received: by ewy8 with SMTP id 8so1143671ewy.8 for ; Tue, 01 Jun 2010 01:26:44 -0700 (PDT) In-Reply-To: <87d3wes6uf.fsf@eraldo.org> 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: Eraldo Helal Cc: Org-Mode On May 30, 2010, at 12:04 AM, 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. Hi Eraldo, currently there is no easy way to do this. One way to hack it would be to write a function that temporarily modifies to make all remember templates point to the current location. So something like (untested) (defun my-remember-here () (interactive) (let ((file buffer-file-name) (heading (org-get-heading 'no-tags)) (org-remember-templates (mapcar (lambda (x) (list (nth 0 x) (nth 1 x) (nth 2 x) file heading)) org-remember-templates))) (call-interatively 'org-remember))) - Carsten