Move meghanada-mode to java-mode-local-vars-hook

Prevents org src blocks aggressively trying to activate meghanada-mode
multiple times, causing undue slowness.
This commit is contained in:
Henrik Lissner 2021-02-22 23:16:01 -05:00
parent fb0835bfac
commit 972796913e

View file

@ -2,7 +2,7 @@
;;;###if (featurep! +meghanada)
(use-package! meghanada
:hook (java-mode . meghanada-mode)
:hook (java-mode-local-vars . meghanada-mode)
:init
(setq meghanada-server-install-dir (concat doom-etc-dir "meghanada-server/")
meghanada-use-company (featurep! :completion company)