From 490cd7a4b044982ddf1f0d8f1f94cb2a53c6d1aa Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 18 Mar 2020 09:09:20 -0400 Subject: [PATCH] Add Java and Kotlin support --- emacs/init.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index 99db646..7e90b5b 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2583,6 +2583,22 @@ Manage node version via NVM within Emacs: (nvm-use version))) #+END_SRC +* Java +#+BEGIN_SRC emacs-lisp + (use-package lsp-java + :hook ((java-mode . lsp))) +#+END_SRC + +* Kotlin +#+BEGIN_SRC emacs-lisp + (use-package kotlin-mode + :mode (("\\.kt\\'" . kotlin-mode)) + :config + (with-eval-after-load 'lsp + (when (executable-find "kotlin-language-server") + (add-hook 'kotlin-mode-hook #'lsp)))) +#+END_SRC + * Groovy Used for Jenkins configuration scripts and probably other things. #+BEGIN_SRC emacs-lisp