From b3134d154c8e9cc6fcb6f947a293399fe81e0faa Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 16 Nov 2014 00:42:49 -0500 Subject: Move snakemake-compile-command --- snakemake-mode.el | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'snakemake-mode.el') diff --git a/snakemake-mode.el b/snakemake-mode.el index 62dcea7..f251d8e 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -220,6 +220,16 @@ column of the first non-blank character." (if (re-search-forward rule-re (point-at-eol) t) (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 @@ -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." -- cgit v1.2.3