Update the Java layer to support eclimd
Signed-off-by: Ellis Kenyo <elken@mykolab.com>
This commit is contained in:
parent
4b682ce1b3
commit
229ef0c05c
|
@ -12,6 +12,7 @@
|
|||
- [[#key-bindings][Key bindings]]
|
||||
- [[#java-mode][Java-mode]]
|
||||
- [[#project-management][Project management]]
|
||||
- [[#eclimd][Eclimd]]
|
||||
- [[#maven][Maven]]
|
||||
- [[#goto][Goto]]
|
||||
- [[#refactoring][Refactoring]]
|
||||
|
@ -45,10 +46,19 @@ for instance:
|
|||
eclim-executable "~/opt/eclipse/eclim")
|
||||
#+END_SRC
|
||||
|
||||
You can also configure other options, shown below:
|
||||
|
||||
#+BEGIN_SRC elisp
|
||||
(setq eclimd-executable "/path/to/another/executable" ;; Use another eclimd executable
|
||||
eclimd-default-workspace "/path/to/default/eclipse/workspace" ;; Specify the workspace to use by default
|
||||
eclimd-wait-for-process t) ;; Whether or not to block emacs until eclimd is ready
|
||||
#+END_SRC
|
||||
|
||||
*** Usage
|
||||
Currently you have to have =eclimd= already started.
|
||||
This layer doesn't try to control =eclimd= in no way although there's that
|
||||
option in =emacs-eclim= itself.
|
||||
To start the eclimd daemon, you can either invoke via =SPC m d s= (or whatever
|
||||
you've bound it to) or via =start-eclimd=. The process blocks for a while.
|
||||
|
||||
To stop the daemon, you can either invoke via =SPC m d k= or =stop-eclimd=.
|
||||
|
||||
* Key bindings
|
||||
** Java-mode
|
||||
|
@ -67,6 +77,13 @@ option in =emacs-eclim= itself.
|
|||
| ~SPC m p p~ | Open project management buffer |
|
||||
| ~SPC m p u~ | Update project |
|
||||
|
||||
*** Eclimd
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+--------------|
|
||||
| ~SPC m d s~ | Start daemon |
|
||||
| ~SPC m d k~ | Stop daemon |
|
||||
|
||||
*** Maven
|
||||
|
||||
| Key Binding | Description |
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
:init (add-hook 'java-mode-hook 'eclim-mode)
|
||||
:config
|
||||
(progn
|
||||
(require 'eclimd)
|
||||
(setq help-at-pt-display-when-idle t
|
||||
help-at-pt-timer-delay 0.1)
|
||||
(help-at-pt-set-timer)
|
||||
|
@ -87,6 +88,9 @@
|
|||
"ep" 'eclim-problems-previous-same-window
|
||||
"ew" 'eclim-problems-show-warnings
|
||||
|
||||
"ds" 'start-eclimd
|
||||
"dk" 'stop-eclimd
|
||||
|
||||
"ff" 'eclim-java-find-generic
|
||||
|
||||
"gg" 'eclim-java-find-declaration
|
||||
|
@ -143,6 +147,7 @@
|
|||
|
||||
(defun java/init-java-mode ()
|
||||
(setq java/key-binding-prefixes '(("me" . "errors")
|
||||
("md" . "eclimd")
|
||||
("mf" . "find")
|
||||
("mg" . "goto")
|
||||
("mr" . "refactor")
|
||||
|
|
Loading…
Reference in a new issue