Major update + cleanup
This commit is contained in:
parent
51589eb7a1
commit
bea393083c
29 changed files with 388 additions and 358 deletions
|
@ -1,3 +1,14 @@
|
|||
(defun my-java-project-package ()
|
||||
(if (eq major-mode 'java-mode)
|
||||
(s-chop-suffix "." (s-replace "/" "." (f-dirname (f-relative (buffer-file-name)
|
||||
(concat (my--project-root) "src/")))))
|
||||
""))
|
||||
|
||||
(defun my-java-class-name ()
|
||||
(if (eq major-mode 'java-mode)
|
||||
(f-no-ext (f-base (buffer-file-name)))
|
||||
""))
|
||||
|
||||
(use-package eclim
|
||||
:commands (eclim-mode global-eclim-mode)
|
||||
:config
|
||||
|
@ -18,18 +29,17 @@
|
|||
|
||||
(after "company"
|
||||
(use-package company-emacs-eclim
|
||||
:init (company-emacs-eclim-setup)))
|
||||
|
||||
(after "auto-complete"
|
||||
(add-hook! 'java-mode-hook
|
||||
(setq ac-sources '(ac-source-emacs-eclim
|
||||
ac-source-yasnippet
|
||||
ac-source-abbrev
|
||||
ac-source-dictionary
|
||||
ac-source-words-in-same-mode-buffers))))
|
||||
:config (company-emacs-eclim-setup)))
|
||||
|
||||
(bind 'motion java-mode-map "gd" 'eclim-java-find-declaration)))
|
||||
|
||||
(use-package android-mode
|
||||
:defer t
|
||||
:init
|
||||
(add-hook! 'java-mode-hook
|
||||
(when (f-exists? (concat (my--project-root) "AndroidManifest.xml"))
|
||||
(android-mode +1))))
|
||||
|
||||
(use-package groovy-mode
|
||||
:mode "\\.gradle$"
|
||||
:config (after "auto-complete" (add-to-list 'ac-modes 'groovy-mode)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue