Java config via cc-mode.
create-new-buffer defun.
Disable yasnippet in certain modes in own :config section.