Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-complete doesn't show the yasnippets #3

Open
baztian opened this issue Mar 24, 2015 · 4 comments
Open

auto-complete doesn't show the yasnippets #3

baztian opened this issue Mar 24, 2015 · 4 comments

Comments

@baztian
Copy link

baztian commented Mar 24, 2015

auto-complete doesn't show the snippets made with yasnippet. It only expands them when pressing Ctrl-g and then Tab again. For instance the python snippet tr for a trace line suggest True and other stuff but not the abbreviation from yasnippet. Any ideas?

@baztian
Copy link
Author

baztian commented Mar 25, 2015

Solution is either to add

(add-hook 'python-mode-hook
      (lambda ()
        (push 'ac-source-yasnippet ac-sources)))

or

(setq-default ac-sources (push 'ac-source-yasnippet ac-sources))

if you want to enable yasnippet auto completion globally (see auto-complete/auto-complete#357)

@AndreaCrotti
Copy link
Owner

Ok thanks @baztian I'd probably just switch to company mode instead since it's probably nicer anyway..

@dariushazimi
Copy link

I followed the instruction step by step.
Running emacs 25.x on Windows 7.
Python 3.x installed.
Installed jedi, rope, pylint, pyflake8
Loaded the init.el from the minimal configuration here.
eval-buffer went fine
created a new py file
typed: import os
os.
And there is no autocomplete.
Any idea?
ps. New emacs user, trying to jump ship from vim :)... So far drowning every 2 minutes and have to just close emacs. Going through icicles. So any pointers would be great.

@AndreaCrotti
Copy link
Owner

Mm generally you need to type 1-2 chars before getting auto completion.
However the problem might also be related with Windows, and if that's the case I can't really help haven't used it for a long time.

Is company-mode enabled anyway (do C-h v company-mode to check)?
Can you see any error in the Messages buffer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants