summaryrefslogtreecommitdiff
path: root/lisp/init-snakemake.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/init-snakemake.el')
-rw-r--r--lisp/init-snakemake.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/init-snakemake.el b/lisp/init-snakemake.el
index bb69614..380a74a 100644
--- a/lisp/init-snakemake.el
+++ b/lisp/init-snakemake.el
@@ -1,7 +1,8 @@
(add-to-list 'load-path "~/src/emacs/snakemake-mode/")
-
(require 'snakemake-mode-autoloads)
+(autoload 'snakemake-compile-command "snakemake-mode")
+
(setq snakemake-compile-command-options '("-p"))
;; Although `compile-command' is set when snakemake-mode is derived from
@@ -35,12 +36,10 @@ run."
(let ((default-directory (projectile-project-root)))
(call-interactively #'snakemake-compile-rule)))
-(autoload 'snakemake-compile-command "snakemake-mode")
-
(after 'init-external
- (define-key km/compile-map "p"
- 'km/snakemake-compile-project-file)
(define-key km/compile-map "b"
- 'km/snakemake-compile-project-rule))
+ 'km/snakemake-compile-project-rule)
+ (define-key km/compile-map "p"
+ 'km/snakemake-compile-project-file))
(provide 'init-snakemake)