Add Kotlin module
This commit is contained in:
parent
803ca2863a
commit
13f705dc0e
4 changed files with 42 additions and 0 deletions
16
modules/lang/kotlin/config.el
Normal file
16
modules/lang/kotlin/config.el
Normal file
|
@ -0,0 +1,16 @@
|
|||
;;; lang/kotlin/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(after! kotlin-mode
|
||||
(set-docsets! 'kotlin-mode "Kotlin")
|
||||
|
||||
(map! :map kotlin-mode-map
|
||||
:localleader
|
||||
:prefix ("b" . "build")
|
||||
:desc "gradlew assemble" "a" (λ! (+kotlin/run-gradlew "assemble"))
|
||||
:desc "gradlew build" "b" (λ! (+kotlin/run-gradlew "build"))
|
||||
:desc "gradlew test" "t" (λ! (+kotlin/run-gradlew "test"))))
|
||||
|
||||
(def-package! flycheck-kotlin
|
||||
:when (featurep! :tools flycheck)
|
||||
:after kotlin-mode
|
||||
:config (add-hook 'kotlin-mode-hook #'flycheck-kotlin-setup))
|
Loading…
Add table
Add a link
Reference in a new issue