lang/java: remove redundant server-install code + minor refactor
meghanada-mode already auto-installs the server. It doesn't need our help.
This commit is contained in:
parent
e9f34d8bdb
commit
a74218f490
2 changed files with 4 additions and 9 deletions
|
@ -10,19 +10,12 @@
|
||||||
meghanada-use-eldoc t
|
meghanada-use-eldoc t
|
||||||
meghanada-use-auto-start t)
|
meghanada-use-auto-start t)
|
||||||
|
|
||||||
(add-hook 'java-mode-hook #'rainbow-delimiters-mode)
|
|
||||||
|
|
||||||
;; Setup on first use
|
|
||||||
(unless (bound-and-true-p byte-compile-current-file)
|
|
||||||
(meghanada-install-server)
|
|
||||||
(if (file-exists-p (meghanada--locate-server-jar))
|
|
||||||
(add-hook! 'meghanada-mode-hook #'(flycheck-mode eldoc-mode))
|
|
||||||
(warn "java-mode: meghanada-server not installed, java-mode will run with reduced functionality")))
|
|
||||||
|
|
||||||
(set! :jump 'java-mode
|
(set! :jump 'java-mode
|
||||||
:definition #'meghanada-jump-declaration
|
:definition #'meghanada-jump-declaration
|
||||||
:references #'meghanada-reference)
|
:references #'meghanada-reference)
|
||||||
|
|
||||||
|
(add-hook! 'meghanada-mode-hook #'(flycheck-mode eldoc-mode))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
(def-menu! +java/refactor-menu
|
(def-menu! +java/refactor-menu
|
||||||
"Refactoring commands for `java-mode' buffers."
|
"Refactoring commands for `java-mode' buffers."
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
;;; lang/java/config.el -*- lexical-binding: t; -*-
|
;;; lang/java/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(add-hook 'java-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
|
||||||
(cond ((featurep! +meghanada) (load! +meghanada))
|
(cond ((featurep! +meghanada) (load! +meghanada))
|
||||||
((featurep! +eclim) ; FIXME lang/java +eclim
|
((featurep! +eclim) ; FIXME lang/java +eclim
|
||||||
;;(load! +eclim)
|
;;(load! +eclim)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue