add JAVA_HOME
ignore emacs backup files