Created
July 23, 2014 22:33
-
-
Save yveszoundi/2193121023b97c17cd7b to your computer and use it in GitHub Desktop.
Eclim Emacs setup
This file contains hidden or 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
(use-package eclim | |
:load-path ("/Users/yves/.emacs.d/vendor/emacs-eclim") | |
:init (setq help-at-pt-display-when-idle t | |
help-at-pt-timer-delay 0.1 | |
eclimd-executable "~/Tools/eclipse/eclimd" | |
eclim-executable "~/Tools/eclipse/eclim" | |
eclimd-default-workspace "~/Documents/workspace/" | |
eclim-eclipse-dirs '("~/Tools/eclipse")) | |
:config (progn (help-at-pt-set-timer) | |
(mapc #'require '(eclimd company-emacs-eclim)) | |
(company-emacs-eclim-setup) | |
(defun ers/eclim-run-class () | |
(interactive) | |
(beginning-of-buffer) | |
(search "class ") | |
(forward-word) | |
(eclim-run-class)) | |
(bind-keys :map eclim-mode-map | |
("C-c C-e l m" . eclim-manage-projects) | |
("C-c C-e l r" . ers/eclim-run-class) | |
("C-c C-e l c" . garbage-collect) | |
("C-c C-e l o" . eclim-problems-open) | |
("C-c C-e l b" . eclim-project-build)) | |
(dolist (elt '(groovy-mode-hook java-mode-hook)) | |
(add-hook elt (lambda () | |
(interactive) | |
(eclim-mode t)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment