Created
October 29, 2012 10:44
-
-
Save ivv-private/3972905 to your computer and use it in GitHub Desktop.
blog-emacs-java-jde-settings
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
(load "jde-autoload") | |
(setq jde-check-version-flag nil) | |
(setq jde-compile-option-directory | |
(concat user-emacs-directory "tmp")) | |
(require 'gud) | |
(defun java-my-minor () | |
(progn | |
(gtags-mode t) | |
(glasses-mode t) | |
(auto-complete-mode t) | |
(add-to-list 'ac-sources ac-source-gtags) | |
(local-set-key [f8] 'gud-next) | |
(local-set-key [f9] 'gud-cont) | |
(local-set-key (kbd "M-/") 'hippie-expand) | |
(local-set-key (kbd "C-c C-v .") 'jde-complete-minibuf) | |
(add-hook 'before-save-hook | |
(lambda () | |
(jde-import-kill-extra-imports) | |
(jde-import-all) | |
(jde-import-organize)) | |
nil t) | |
(add-hook 'after-save-hook 'jde-compile nil t))) | |
(add-hook 'jde-mode-hook 'java-my-minor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment