summaryrefslogtreecommitdiff
path: root/lisp/init-snakemake.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-23 23:23:05 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-27 01:01:05 -0500
commitd9cae60fa5048abd3528f96a285109329639fda6 (patch)
treef4e25372dd4e8c466c82a09cd11c1dd5cb882487 /lisp/init-snakemake.el
parent06d5146080137650645ad0750e23c8a238754ea6 (diff)
downloademacs.d-d9cae60fa5048abd3528f96a285109329639fda6.tar.gz
Improve organization and consistency of files
- Add pages and more headings for large files. - Try to use consistent order for file (or page) structure. * Loading * Settings * Hooks * Any mode activation or function calls * My functions * Key bindings
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)