diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-07-08 00:27:20 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-07-08 00:27:20 -0400 |
commit | 41b90771b47358d0870bd2e9c870c772f0761da2 (patch) | |
tree | 1e2367ec762ed4fdc79c98aebd3f19ed837d27f6 | |
parent | d1920df035d9a65b4f978de041c9709ff8fd3163 (diff) | |
download | emacs.d-41b90771b47358d0870bd2e9c870c772f0761da2.tar.gz |
Add snakemake-mode initialization
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-snakemake.el | 16 |
2 files changed, 17 insertions, 0 deletions
@@ -48,6 +48,7 @@ (require 'init-git) (require 'init-projectile) (require 'init-grep) +(require 'init-snakemake) (require 'init-ido) (require 'init-smex) 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) |