From d9cae60fa5048abd3528f96a285109329639fda6 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 23 Jan 2015 23:23:05 -0500 Subject: 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 --- lisp/init-snakemake.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lisp/init-snakemake.el') 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) -- cgit v1.2.3