summaryrefslogtreecommitdiff
path: root/snakemake-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'snakemake-mode.el')
-rw-r--r--snakemake-mode.el17
1 files changed, 10 insertions, 7 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index 62dcea7..f251d8e 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -221,6 +221,16 @@ column of the first non-blank character."
(1- (current-column))))))
+;;; Compilation
+
+(defun snakemake-compile-command ()
+ "Return Snakemake compile command.
+Flags are taken from `snakemake-compile-command-options'."
+ (mapconcat 'identity
+ (cons snakemake-executable snakemake-compile-command-options)
+ " "))
+
+
;;; Mode
(defvar snakemake-font-lock-keywords
@@ -240,13 +250,6 @@ column of the first non-blank character."
(add-hook 'snakemake-mode-hook 'snakemake-set-imenu-generic-expression)
-(defun snakemake-compile-command ()
- "Return Snakemake compile command.
-Flags are taken from `snakemake-compile-command-options'."
- (mapconcat 'identity
- (cons snakemake-executable snakemake-compile-command-options)
- " "))
-
;;;###autoload
(define-derived-mode snakemake-mode python-mode "Snakemake"
"Mode for editing Snakemake files."