A set of java-mode snippets for YASnippet.
Unfortunately this nekop/yasnippet-java-mode repository is no longer actively maintained. Feel free to fork and take over if you wish.
I highly recommend installing yasnippet-java-mode
through elpa.
The package name is java-snippets
and it’s available on MELPA.
M-x package-install java-snippets
Put “snippets/java-mode” directory under your “~/.emacs.d/snippets/” directory.
The following describes two ways of installing. The first method requires that git
is installed and the second does not.
git clone https://github.com/nekop/yasnippet-java-mode.git /tmp/yasnippet-java-mode mv /tmp/yasnippet-java-mode/snippets/java-mode ~/.emacs.d/snippets/
Download an archive and extract to the directory you want to install in.