all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* cursor positioning in YASnippet entry
@ 2014-06-11 15:31 Sharon Kimble
       [not found] ` <5398AC59.3040205@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2014-06-11 15:31 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

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?

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cursor positioning in YASnippet entry
       [not found] ` <5398AC59.3040205@gmail.com>
@ 2014-06-11 20:30   ` Sharon Kimble
  0 siblings, 0 replies; 2+ messages in thread
From: Sharon Kimble @ 2014-06-11 20:30 UTC (permalink / raw)
  To: Alexis Roda; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-11 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11 15:31 cursor positioning in YASnippet entry Sharon Kimble
     [not found] ` <5398AC59.3040205@gmail.com>
2014-06-11 20:30   ` Sharon Kimble

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.