Ruby on Rails Yasnippet possible: Install bug, Typo, Helpful preference

28 views
Skip to first unread message

Charles Magid (rubyCharles)

unread,
Jan 30, 2012, 12:47:23 PM1/30/12
to smart-snippet and YASnippet
In the section next to the bottom of the readme: "Using imported
textmate snippets (rails example)".


A) In my experience, Rinari must be installed for yasnippet to work
properly with rails-mode.

B) I believe there is a small typo wrt the yas/snippet-dirs. I changed
the following line:

Context

1. (add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
2. (require 'yasnippet) ;; not yasnippet-bundle

3.OLD (setq yas/snippet-dirs '("~/.emacs.d/snippets" "~/.emacs.d/
extras/imported"))
3.NEW (setq yas/snippet-dirs '("~/.emacs.d/plugins/yasnippet/
snippets" "~/.emacs.d/plugins/yasnippet/extras/imported"))


C) Also I changed the prompt order to start with dropdown to have it
be the default.

4.ADD (setq yas/use-menu (quote abbreviate))
5.ADD (setq yas/prompt-functions (quote (yas/dropdown-prompt yas/x-
prompt yas/completing-prompt yas/ido-prompt yas/no-prompt)))

Context

6. (yas/global-mode 1)
Reply all
Reply to author
Forward
0 new messages