summaryrefslogtreecommitdiff
path: root/lisp/init-snakemake.el
blob: a5ebd69915037cf0a542e388a50512e56927a2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)