summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-11-16 00:42:49 -0500
committerKyle Meyer <kyle@kyleam.com>2014-11-16 00:42:49 -0500
commitb3134d154c8e9cc6fcb6f947a293399fe81e0faa (patch)
tree3ff049d20c748ec57337fbd6e9738f265c13c0bf
parente1fb1f91dd6b557d23d97dd3dc376edf8773d8e6 (diff)
downloadsnakemake-mode-b3134d154c8e9cc6fcb6f947a293399fe81e0faa.tar.gz
Move snakemake-compile-command
-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."