From 0071aa6b85b5a932d42f268f3db75ce1afc342b5 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 28 Jun 2014 19:20:51 -0400 Subject: Make compile command flags customizable --- snakemake-mode.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'snakemake-mode.el') diff --git a/snakemake-mode.el b/snakemake-mode.el index dff3651..5ededc9 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -66,6 +66,11 @@ :type 'integer :group 'snakemake) +(defcustom snakemake-compile-command-options nil + "Flags to add to default Snakemake compilation command." + :group 'snakemake + :type '(repeat string)) + ;;; Regexp @@ -214,7 +219,9 @@ indentation is determined by the location within the rule block. "Mode for editing Snakemake files." (set (make-local-variable 'indent-line-function) 'snakemake-indent-line) (font-lock-add-keywords nil snakemake-font-lock-keywords) - (set (make-local-variable 'compile-command) "snakemake")) + (set (make-local-variable 'compile-command) + (mapconcat 'identity + (cons "snakemake" snakemake-compile-command-options) " "))) ;;;###autoload (add-to-list 'auto-mode-alist '("Snakefile" . snakemake-mode)) -- cgit v1.2.3