Created
February 14, 2016 01:45
-
-
Save futuro/1685fb034e36af8cbf74 to your computer and use it in GitHub Desktop.
Setting up emacs for java development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'android) ; This is android.el from the sdk | |
(mapc (lambda (library) | |
(require library)) | |
'(java-custom android-mode)) | |
(add-hook 'gud-mode-hook | |
(lambda () | |
(add-to-list 'gud-jdb-classpath | |
"~/devel/mobil/android/android-sdk-linux/platforms/android-17/android.jar"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'(flymake-allowed-file-name-masks | |
(quote | |
(("\\.java\\'" jde-ecj-server-flymake-init jde-ecj-flymake-cleanup)))) | |
'(jde-ant-args "") | |
'(jde-compiler | |
(quote | |
(("eclipse java compiler server" "/usr/share/java/ecj.jar")))) | |
'(jde-ecj-command-line-args | |
(quote | |
("-d" "none" "-source" "1.6" "-target" "1.6" "-warn:-serial"))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path "~/.emacs.d/elisp/jdee-2.4.1/lisp") | |
(load "jde") | |
(require 'cc-mode) | |
(mapc (lambda (library) | |
(require library)) | |
'(jde-ecj-flymake jtags jtags-extras)) | |
(mapc (lambda (hook) | |
(mapc (lambda (func) | |
(add-hook hook func)) | |
'((lambda () | |
(c-set-style "java")) | |
(lambda () | |
(setq local-abbrev-table jde-mode-abbrev-table)) | |
jde-annotations-setup jtags-mode flymake-mode | |
hs-minor-mode))) | |
'(jde-mode-hook)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment