`yas-minor-mode' is not work. #352

Closed
zw963 opened this Issue Dec 28, 2012 · 1 comment

Projects

None yet

2 participants

@zw963
zw963 commented Dec 28, 2012

perpare work

cd ~/Source/Emacs
git clone https://github.com/auto-complete/auto-complete
git clone https://github.com/capitaomorte/yasnippet
cd auto-complete
git submodule init
git submodule update
cd ../

Please create a new lisp file: ~/Source/Emacs/1.el.

((require 'yasnippet)
(setq yas-snippet-dirs "~/Source/Emacs/yasnippet/snippets")

(add-hook 'ruby-mode-hook
          (lambda ()
        (yas-minor-mode 1)
            ))

(require 'auto-complete-config)
(ac-config-default)
(setq-default ac-sources '(
                           ac-source-yasnippet
                           ac-source-abbrev
                           ac-source-dictionary
                           ac-source-words-in-same-mode-buffers
                           ))

launching emacs

emacs -Q -L yasnippet
-L auto-complete
-L auto-complete/lib/popup
-L auto-complete/lib/fuzzy

emacs-lisp setup

M-x load-file ~/Source/Emacs/1.el

what the user should do

M-x ruby-mode

it seem yasnippet is not started. all snippet is not available.
e.g. inject + TAB, not anything happen.

resolve method

M-x (yas-globl-mode), it work OK.

@joaotavora
Owner

When not using yas-global-mode, you must call yas-reload-all to first load the snippet tables in your 1.el.

@joaotavora joaotavora closed this May 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment