Use yas-global-mode instead of yas-minor-mode.