lang/java: fix meghanada-mode hooks
This commit is contained in:
parent
2b13451ea8
commit
730e4c2600
1 changed files with 3 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
(def-package! meghanada
|
||||
:commands meghanada-mode
|
||||
:init
|
||||
(add-hook! 'java-mode-hook #'(meghanada-mode rainbow-delimiters-mode))
|
||||
:config
|
||||
(setq meghanada-server-install-dir (concat doom-etc-dir "meghanada-server/")
|
||||
meghanada-use-company (featurep! :completion company)
|
||||
|
@ -9,12 +11,10 @@
|
|||
meghanada-use-eldoc t
|
||||
meghanada-use-auto-start t)
|
||||
|
||||
(add-hook 'java-mode-hook #'(rainbow-delimiters-mode eldoc-mode))
|
||||
|
||||
;; Setup on first use
|
||||
(meghanada-install-server)
|
||||
(if (file-exists-p (meghanada--locate-server-jar))
|
||||
(add-hook! 'java-mode-hook #'(meghanada-mode flycheck-mode))
|
||||
(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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue