all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* yasnippet doesn't work after switching to github version
@ 2011-11-17  7:51 Tassilo Horn
  2011-11-17 17:18 ` Memnon Anon
  0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2011-11-17  7:51 UTC (permalink / raw)
  To: help-gnu-emacs

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




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

end of thread, other threads:[~2011-11-17 18:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17  7:51 yasnippet doesn't work after switching to github version Tassilo Horn
2011-11-17 17:18 ` Memnon Anon
2011-11-17 18:51   ` Tassilo Horn

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.