From bd2af81baca4c59304aa4e671f69671caa70f817 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 18 Feb 2016 23:25:36 -0500 Subject: [PATCH] Move compile bindings into the use-package sexp --- .emacs.d/init.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1209ef7..0ee8749 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -25,8 +25,6 @@ auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) ;;;; keybinds -(global-set-key (kbd "C-z") `recompile) -(global-set-key (kbd "C-S-z") `compile) (when (fboundp 'windmove-default-keybindings) (windmove-default-keybindings)) @@ -58,6 +56,9 @@ (setq ibuffer-show-empty-filter-groups nil)))) (use-package compile + :commands (compile recompile) + :bind ("C-z" . recompile) + :bind ("C-S-z" . compile) :config (add-hook 'compilation-start-hook (lambda (x) (setq-local scroll-up-aggressively 0))))