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

snippets in private cannot be loaded automatically #1553

Closed
eyesfrog opened this issue May 10, 2015 · 7 comments
Closed

snippets in private cannot be loaded automatically #1553

eyesfrog opened this issue May 10, 2015 · 7 comments

Comments

@eyesfrog
Copy link

I wrote some snippets and saved them to ~/.emacs.d/private/snippets/cc-mode/.
But I find them cannot be loaded by Yasnippets automatically.
I must press space-t-y twice or reload everything then it works well.

@tuhdo
Copy link
Contributor

tuhdo commented May 10, 2015

Do you have auto-yasnippet? If that is the case, when you use auto-yasnippet it will make the yas-minor-mode function available and Spacemacs cannot loads yasnippet properly because it thinks that the package already loaded.

@eyesfrog
Copy link
Author

I don't quite know about it. How to check if I have auto-yasnippet?
I am not familiar with emacs and spacemacs.😔

tuhdo added a commit to tuhdo/spacemacs that referenced this issue May 10, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode available, thus prevent Spacemacs to load yasnippet
properly.
tuhdo added a commit to tuhdo/spacemacs that referenced this issue May 10, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode available, thus prevent Spacemacs to load yasnippet
properly.
tuhdo added a commit to tuhdo/spacemacs that referenced this issue May 10, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode available, thus prevent Spacemacs to load yasnippet
properly.
tuhdo added a commit to tuhdo/spacemacs that referenced this issue May 10, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode available, thus prevent Spacemacs to load yasnippet
properly.
@eyesfrog
Copy link
Author

Oh why this packages.el is different from mine?
In my packages.el, there just 3 in auto-completion-packages: company, auto-complete and ac-ispell.

I change the packages.el as you fixed, it still cannot work.

@tuhdo
Copy link
Contributor

tuhdo commented May 10, 2015

That packages.el is in the develop branch.

@eyesfrog
Copy link
Author

I see.
Thx a lot~

@eyesfrog
Copy link
Author

Well, I've just tried but it still can't work.
Orz.

@syl20bnr
Copy link
Owner

@eyesfrog any news on this ? Did the last changes in develop fix this issue ?

tuhdo pushed a commit to tuhdo/spacemacs that referenced this issue May 21, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode available, thus prevent Spacemacs to load yasnippet
properly.
tuhdo pushed a commit to tuhdo/spacemacs that referenced this issue May 22, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode definition available, thus prevent Spacemacs to load
yasnippet properly. By checking yas-global-mode variable, we can assure
that yas-global-mode is enabled properly.

Also exclude yasnippet from eshell.
syl20bnr pushed a commit that referenced this issue May 23, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode definition available, thus prevent Spacemacs to load
yasnippet properly. By checking yas-global-mode variable, we can assure
that yas-global-mode is enabled properly.

Also exclude yasnippet from eshell.
@syl20bnr syl20bnr closed this as completed Jun 1, 2015
kryptt pushed a commit to kryptt/spacemacs that referenced this issue Sep 6, 2015
By checking if the yas-minor-mode is enabled. If so, load yasnippet. We
must do so because some package might load yasnippet and make
yas-minor-mode definition available, thus prevent Spacemacs to load
yasnippet properly. By checking yas-global-mode variable, we can assure
that yas-global-mode is enabled properly.

Also exclude yasnippet from eshell.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants