From 0c44981cdde622579d09e5be2c0eea44a7f87ce9 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 24 Aug 2014 00:19:18 -0400 Subject: Add snakemake-compile-project-file-at-point --- lisp/init-snakemake.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lisp') diff --git a/lisp/init-snakemake.el b/lisp/init-snakemake.el index 5198667..64d235c 100644 --- a/lisp/init-snakemake.el +++ b/lisp/init-snakemake.el @@ -11,4 +11,12 @@ (set (make-local-variable 'compile-command) (snakemake-compile-command)))) +(defun km/snakemake-compile-project-file-at-point () + "Run Snakemake to produce project file at point." + (interactive) + (let ((compile-command (concat (snakemake-compile-command) " " + (km/project-filename-at-point))) + (default-directory (projectile-project-root))) + (call-interactively 'compile))) + (provide 'init-snakemake) -- cgit v1.2.3