Move compile bindings into the use-package sexp

This commit is contained in:
Adam Goldsmith 2016-02-18 23:25:36 -05:00
parent 642c97bc64
commit bd2af81bac

View File

@ -25,8 +25,6 @@
auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
;;;; keybinds ;;;; keybinds
(global-set-key (kbd "C-z") `recompile)
(global-set-key (kbd "C-S-z") `compile)
(when (fboundp 'windmove-default-keybindings) (when (fboundp 'windmove-default-keybindings)
(windmove-default-keybindings)) (windmove-default-keybindings))
@ -58,6 +56,9 @@
(setq ibuffer-show-empty-filter-groups nil)))) (setq ibuffer-show-empty-filter-groups nil))))
(use-package compile (use-package compile
:commands (compile recompile)
:bind ("C-z" . recompile)
:bind ("C-S-z" . compile)
:config :config
(add-hook 'compilation-start-hook (lambda (x) (setq-local scroll-up-aggressively 0)))) (add-hook 'compilation-start-hook (lambda (x) (setq-local scroll-up-aggressively 0))))