emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] FR: Tap stops in org-capture templates


From: Russell Adams
Subject: Re: [Orgmode] FR: Tap stops in org-capture templates
Date: Mon, 15 Nov 2010 06:54:10 -0600
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Nov 15, 2010 at 07:51:52AM +0100, Carsten Dominik wrote:
>
> On Nov 15, 2010, at 12:53 AM, Russell Adams wrote:
>
> >I reviewed the org-manual for capture, and noticed that we don't have
> >a way to specify tab stops. I use yasnippet all the time to enter
> >information, and I can tab from field to field.
> >
> >Can capture do the same?
>
> Hi Russel,
>
> can't you just use a yasnippet in a capture buffer?
>
> - Carsten

Certainly, if that's the preferred method.

Given that, I'm trying to get yasnippet to trigger via elisp when
capture creates the new buffer.

A template of "\n\ncontact%(yas/expand)" fails with:
condition-case: Capture abort: (wrong-type-argument char-or-string-p nil)


And a template of:
"\n\n%(yas/expand-snippet (yas/template-content (yas/get-template-by-uid 
'org-mode \"contact\")))"

fails with:
condition-case: Capture template `c': The kill is not a (set of) tree(s) - 
please use <S-insertchar> to yank anyway

Anyone more familiar with elisp that can give me some insight?

Thanks.

------------------------------------------------------------------
Russell Adams                            address@hidden

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3



reply via email to

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