aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-03-26 19:06:46 -0400
committerKyle Meyer <kyle@kyleam.com>2017-03-26 21:21:31 -0400
commit0147ebc2826bca3dd042893507f6e65d5fc0a722 (patch)
tree0e040f08b3034ce61841f11b99fd8f3041df1394
parent1e570d8fb8fb9d07a989fdb8fdf3980d190449b6 (diff)
downloadsnakemake-mode-0147ebc2826bca3dd042893507f6e65d5fc0a722.tar.gz
Modify sections in preparation for a terminal interface
-rw-r--r--snakemake.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/snakemake.el b/snakemake.el
index ed8e486..2a860b2 100644
--- a/snakemake.el
+++ b/snakemake.el
@@ -541,13 +541,15 @@ Snakemake-graph mode is a minor mode that provides a key,
:keymap snakemake-graph-mode-map)
-;;; Compilation commands
+;;; Commands for calling Snakemake
(defun snakemake--make-command (targets args)
(mapconcat #'identity
`(,snakemake-program ,@args "--" ,@targets)
" "))
+;;;; Compilation interface
+
(add-to-list 'compilation-error-regexp-alist 'snakemake)
(add-to-list
'compilation-error-regexp-alist-alist
@@ -561,6 +563,8 @@ Snakemake-graph mode is a minor mode that provides a key,
(compile cmd)
(push cmd compile-history)))
+;;;; General interface
+
;;;###autoload
(defun snakemake-build-targets-at-point (&optional args)
"Build target(s) at point without any prompts.