mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-04 18:09:55 +03:00
Enable gdscript-godot-executable as a full uri to the godot exe
This commit is contained in:
@@ -57,9 +57,8 @@ ARGUMENTS are command line arguments for godot executable.
|
|||||||
When run it will kill existing process if one exists."
|
When run it will kill existing process if one exists."
|
||||||
(let ((buffer-name (gdscript-util--get-godot-buffer-name (member "-e" arguments)))
|
(let ((buffer-name (gdscript-util--get-godot-buffer-name (member "-e" arguments)))
|
||||||
(inhibit-read-only t))
|
(inhibit-read-only t))
|
||||||
|
(when (not (or (f-executable-p gdscript-godot-executable) (executable-find gdscript-godot-executable)))
|
||||||
(when (not (executable-find gdscript-godot-executable))
|
(error "Error: Could not execute '%s'. Please customize the `gdscript-godot-executable variable'" gdscript-godot-executable))
|
||||||
(error "Error: Could not find %s on PATH. Please customize the gdscript-godot-executable variable" gdscript-godot-executable))
|
|
||||||
|
|
||||||
;; start new godot
|
;; start new godot
|
||||||
(with-current-buffer (get-buffer-create buffer-name)
|
(with-current-buffer (get-buffer-create buffer-name)
|
||||||
|
|||||||
@@ -104,9 +104,8 @@ fill parens."
|
|||||||
"Multiplier applied to indentation inside multi-line def blocks."
|
"Multiplier applied to indentation inside multi-line def blocks."
|
||||||
:version "26.1"
|
:version "26.1"
|
||||||
:type 'integer
|
:type 'integer
|
||||||
:safe 'natnump)
|
:safe 'natnump)
|
||||||
|
|
||||||
(defcustom gdscript-godot-executable "godot"
|
|
||||||
(defcustom gdscript-godot-executable "godot"
|
(defcustom gdscript-godot-executable "godot"
|
||||||
"The godot executable which is either a full path such as '~/bin/godot2.2'
|
"The godot executable which is either a full path such as '~/bin/godot2.2'
|
||||||
or the name of an executable on the system PATH (usually 'godot')"
|
or the name of an executable on the system PATH (usually 'godot')"
|
||||||
|
|||||||
Reference in New Issue
Block a user