This question already has an answer here:
- Proper way to enable minor mode 3 answers
I used to launch yasnippet just with c-mode with a hook in my .emacs but after adding some code to use CEDET and ECB yasnippet doesn't run automatically. I guess some modes may have been overwritten by CEDET, so how do I launch yasnippet mode automatically on c-mode now ?
(yas-reload-all) (add-hook 'c-mode-hook (lambda () (#'yas-minor-mode))) (global-ede-mode 1) ; Enable the Project management system (semantic-mode 1) (require 'semantic/bovine/gcc) (require 'semantic/sb)
I haven't understood the full CEDET configuration process so I may have done something wrong.