adds java snippets in emacs