unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Luca Ferrari <fluca1978@infinito.it>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: problemi with simple ya-snippets
Date: Fri, 28 Feb 2014 08:42:17 +0100	[thread overview]
Message-ID: <CAKoxK+5goobs9K3DW3t=Rg_=NcL0t16SBQdOzm6uU0i0YoXPuw@mail.gmail.com> (raw)

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



             reply	other threads:[~2014-02-28  7:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-28  7:42 Luca Ferrari [this message]
2014-03-03 13:23 ` problemi with simple ya-snippets Luca Ferrari
2014-03-04 11:11   ` Christian Henz
2014-03-04 12:01     ` Luca Ferrari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKoxK+5goobs9K3DW3t=Rg_=NcL0t16SBQdOzm6uU0i0YoXPuw@mail.gmail.com' \
    --to=fluca1978@infinito.it \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).