Rename non-interactive function +kotlin-locate-gradlew-file
This commit is contained in:
parent
0c0aff60a1
commit
76fb819dfb
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
;;; lang/kotlin/autoload.el -*- lexical-binding: t; -*-
|
;;; lang/kotlin/autoload.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;;;autoload
|
;;;autoload
|
||||||
(defun +kotlin/locate-gradlew-file ()
|
(defun +kotlin-locate-gradlew-file ()
|
||||||
"Gradlew file location for this project."
|
"Gradlew file location for this project."
|
||||||
(locate-dominating-file buffer-file-name "gradlew"))
|
(locate-dominating-file buffer-file-name "gradlew"))
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
(defun +kotlin/run-gradlew (command)
|
(defun +kotlin/run-gradlew (command)
|
||||||
"Run gradlew in this project."
|
"Run gradlew in this project."
|
||||||
(interactive "sCommand: ")
|
(interactive "sCommand: ")
|
||||||
(let ((default-directory (+kotlin/locate-gradlew-file))
|
(let ((default-directory (+kotlin-locate-gradlew-file))
|
||||||
(compilation-read-command nil)
|
(compilation-read-command nil)
|
||||||
(compile-command (format "sh gradlew %s" command)))
|
(compile-command (format "sh gradlew %s" command)))
|
||||||
(call-interactively #'compile)))
|
(call-interactively #'compile)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue