summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-08-23 09:04:58 -0400
committerKyle Meyer <kyle@kyleam.com>2014-08-23 09:04:58 -0400
commitc2c2435e7bb3c474ce5d8a09bc42a6d1cc2fa548 (patch)
tree493d5c21ef5e01f8c69eb027f039f10e7d6bce81
parent9e36e77a282e988076a635e7e81495174548584e (diff)
downloadsnakemake-mode-c2c2435e7bb3c474ce5d8a09bc42a6d1cc2fa548.tar.gz
Make snakemake executable customizable
-rw-r--r--snakemake-mode.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index ca96570..62dcea7 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -67,6 +67,11 @@
:type 'integer
:group 'snakemake)
+(defcustom snakemake-executable "snakemake"
+ "Snakemake executable to use in compile command."
+ :group 'snakemake
+ :type 'string)
+
(defcustom snakemake-compile-command-options nil
"Flags to add to default Snakemake compilation command."
:group 'snakemake
@@ -239,7 +244,7 @@ column of the first non-blank character."
"Return Snakemake compile command.
Flags are taken from `snakemake-compile-command-options'."
(mapconcat 'identity
- (cons "snakemake" snakemake-compile-command-options)
+ (cons snakemake-executable snakemake-compile-command-options)
" "))
;;;###autoload