Skip to content

Instantly share code, notes, and snippets.

@ivv-private
Created October 29, 2012 10:44
Show Gist options
  • Save ivv-private/3972905 to your computer and use it in GitHub Desktop.
Save ivv-private/3972905 to your computer and use it in GitHub Desktop.
blog-emacs-java-jde-settings
(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