lang/java: don't install meghanada when compiling
This commit is contained in:
parent
73333784f8
commit
fe02905d22
1 changed files with 5 additions and 4 deletions
|
@ -13,10 +13,11 @@
|
|||
(add-hook 'java-mode-hook #'rainbow-delimiters-mode)
|
||||
|
||||
;; Setup on first use
|
||||
(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"))
|
||||
(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
|
||||
:definition #'meghanada-jump-declaration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue