From: Luca Ferrari <fluca1978@infinito.it>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: problemi with simple ya-snippets
Date: Mon, 3 Mar 2014 14:23:45 +0100 [thread overview]
Message-ID: <CAKoxK+5gr4fvYTLKgouB9sQf0CX4E+xh7pYxmwBX_-TM7HNB3Q@mail.gmail.com> (raw)
In-Reply-To: <CAKoxK+5goobs9K3DW3t=Rg_=NcL0t16SBQdOzm6uU0i0YoXPuw@mail.gmail.com>
I'm still fightining with this snippet problem. I've found that when I
do execute yas/reload-all I got the following:
[yas] Loaded /home/luca/.emacs.d/elpa/yasnippet-0.8.0/snippets
[yas] Check your `yas-snippet-dirs': ~/.emacs.d/snippets is not a directory
[yas] Reloaded everything... (some errors, check *Messages*).
and my yasnippet installation is into ~/.emacs.d/elpa/yasnippet-0.8.0
(and "snippets" is under such directory).
The yas-snippet-directories has the following value:
("~/.emacs.d/snippets" "/home/luca/.emacs.d/elpa/yasnippet-0.8.0/snippets")
but this should not be the source of the error, I suppose.
Any idea?
Thanks,
Luca
On Fri, Feb 28, 2014 at 8:42 AM, Luca Ferrari <fluca1978@infinito.it> wrote:
> 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
next prev parent reply other threads:[~2014-03-03 13:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 7:42 problemi with simple ya-snippets Luca Ferrari
2014-03-03 13:23 ` Luca Ferrari [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKoxK+5gr4fvYTLKgouB9sQf0CX4E+xh7pYxmwBX_-TM7HNB3Q@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.
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.