unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* problemi with simple ya-snippets
@ 2014-02-28  7:42 Luca Ferrari
  2014-03-03 13:23 ` Luca Ferrari
  0 siblings, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2014-02-28  7:42 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,
I'm trying to configure  a couple of simple snippets for PHP, as follows:

# name: foreach ... { ... }
# key: fore
# --
foreach ( \$${1:array} as \$${2:current_element} ) {
    $0
}


# name: foreach ... { ... }
# key: kfor
# --
foreach ( array_keys( \$${1:array} ) as \$${2:current_key} ) {
    $0
}


stored respectively into the snippets directory as php/fore and php/kfor.
After that I do yas/reload-all and try my new snippets. Pressing tab
has no effect, while calling M-x yas-expand works for the fore snippet
but not for the kfor. Any idea about what am I missing?
I'm running yasnippet 0.8 installed via elpa on emacs 24.3.1.

Thanks,
Luca



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

end of thread, other threads:[~2014-03-04 12:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28  7:42 problemi with simple ya-snippets Luca Ferrari
2014-03-03 13:23 ` Luca Ferrari
2014-03-04 11:11   ` Christian Henz
2014-03-04 12:01     ` Luca Ferrari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).