(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)