Add Kotlin module
This commit is contained in:
parent
803ca2863a
commit
13f705dc0e
4 changed files with 42 additions and 0 deletions
15
modules/lang/kotlin/autoload.el
Normal file
15
modules/lang/kotlin/autoload.el
Normal file
|
@ -0,0 +1,15 @@
|
|||
;;; lang/kotlin/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;autoload
|
||||
(defun +kotlin/locate-gradlew-file ()
|
||||
"Gradlew file location for this project."
|
||||
(locate-dominating-file buffer-file-name "gradlew"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +kotlin/run-gradlew (command)
|
||||
"Run gradlew in this project."
|
||||
(interactive "sCommand: ")
|
||||
(let ((default-directory (+kotlin/locate-gradlew-file))
|
||||
(compilation-read-command nil)
|
||||
(compile-command (format "sh gradlew %s" command)))
|
||||
(call-interactively #'compile)))
|
Loading…
Add table
Add a link
Reference in a new issue