help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problemi with simple ya-snippets


From: Luca Ferrari
Subject: Re: problemi with simple ya-snippets
Date: Mon, 3 Mar 2014 14:23:45 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]