From 41b90771b47358d0870bd2e9c870c772f0761da2 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Tue, 8 Jul 2014 00:27:20 -0400 Subject: Add snakemake-mode initialization --- lisp/init-snakemake.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lisp/init-snakemake.el (limited to 'lisp') diff --git a/lisp/init-snakemake.el b/lisp/init-snakemake.el new file mode 100644 index 0000000..a5ebd69 --- /dev/null +++ b/lisp/init-snakemake.el @@ -0,0 +1,16 @@ +(require 'snakemake-mode-autoloads) + +(setq snakemake-compile-command-options '("-p")) + +;; Although `compile-command' is set when snakemake-mode is derived from +;; Python mode, I need to define it again here because I have a Python +;; mode hook that sets `compile-command', which overides the snakemake +;; version. +(add-hook 'snakemake-mode-hook + '(lambda () + (set (make-local-variable 'compile-command) + (mapconcat 'identity + (cons "snakemake" snakemake-compile-command-options) + " ")))) + +(provide 'init-snakemake) -- cgit v1.2.3