[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cursor positioning in YASnippet entry
From: |
Sharon Kimble |
Subject: |
Re: cursor positioning in YASnippet entry |
Date: |
Wed, 11 Jun 2014 21:30:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) |
Alexis Roda <alexis.roda.villalonga@gmail.com> writes:
> El 11/06/14 17:31, Sharon Kimble ha escrit:
>> This is one of my YASnippets -
>> --8<---------------cut here---------------start------------->8---
>> \colorbox{yellow}{FIXME: }
>> --8<---------------cut here---------------end--------------->8---
>>
>> How can I have it open with the cursor always just before the
>> closing curly-bracket please?
>
> In a snippet $0 denotes the location where the point ends after the
> expansion completes:
>
> \colorbox{yellow}{FIXME: $0}
Brilliant, thanks, it works a treat! :)
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
signature.asc
Description: PGP signature