all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: yasnippet doesn't work after switching to github version
Date: Thu, 17 Nov 2011 08:51:35 +0100	[thread overview]
Message-ID: <87obwb89vc.fsf@tsdh.uni-koblenz.de> (raw)

Hi all,

I've used yasnippet from code.google.com's svn for a long time.  Now
I've seen that they've moved over to github.  So I cloned

  git://github.com/capitaomorte/yasnippet.git

and am now using that.  But unfortunately, my snippets don't trigger,
although C-h k TAB says its bound to `yas/expand'.

My configuration is this:

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/repos/el/yasnippet/")
(require 'yasnippet)
(yas/initialize)
(setq yas/snippet-dirs "~/repos/el/yasnippets/")
(yas/reload-all)
--8<---------------cut here---------------end--------------->8---

In ~/repos/el/yasnippets/, there are my custom snippets that used to
work.  For example, there are snippets for message-mode.

--8<---------------cut here---------------start------------->8---
  /home/horn/repos/el/yasnippets:
  total used in directory 16K available 192855692
  drwxr-xr-x  4 horn horn 4,0K 23. Jul 22:41 .
  drwxr-xr-x 18 horn horn 4,0K 16. Nov 08:17 ..
  drwxr-xr-x  2 horn horn 4,0K 23. Jul 22:41 message-mode

  /home/horn/repos/el/yasnippets/message-mode:
  total used in directory 40K available 192855692
  drwxr-xr-x 2 horn horn 4,0K 23. Jul 22:41 .
  drwxr-xr-x 4 horn horn 4,0K 23. Jul 22:41 ..
  -rw-r--r-- 1 horn horn   91 23. Jul 22:41 b
  -rw-r--r-- 1 horn horn  109 23. Jul 22:41 br
  -rw-r--r-- 1 horn horn  109 23. Jul 22:41 bw
  -rw-r--r-- 1 horn horn   95 23. Jul 22:41 g
  -rw-r--r-- 1 horn horn   83 23. Jul 22:41 h
  -rw-r--r-- 1 horn horn   89 23. Jul 22:41 ha
  -rw-r--r-- 1 horn horn   89 23. Jul 22:41 he
  -rw-r--r-- 1 horn horn  111 23. Jul 22:41 vg
--8<---------------cut here---------------end--------------->8---

That's the `b' file for example:

--8<---------------cut here---------------start------------->8---
#contributor : Tassilo Horn <tassilo@member.fsf.org>
#name : Bye, Tassilo
# --
Bye,
Tassilo
--8<---------------cut here---------------end--------------->8---

Comparing that to the snippets that ship with yasnippet, the syntax and
structure of the snippet dir seems correct.

Any idea what's wrong or where I should start debugging.

Bye,
Tassilo (typed completely, not expanded :-()
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf




             reply	other threads:[~2011-11-17  7:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17  7:51 Tassilo Horn [this message]
2011-11-17 17:18 ` yasnippet doesn't work after switching to github version Memnon Anon
2011-11-17 18:51   ` Tassilo Horn

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=87obwb89vc.fsf@tsdh.uni-koblenz.de \
    --to=tassilo@member.fsf.org \
    --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.