config/default: replace :build cmd w/ :compile

This commit is contained in:
Henrik Lissner 2018-03-14 18:34:09 -04:00
parent f8fa07d668
commit b19d30b145
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -17,6 +17,11 @@
(kill-new default-directory) (kill-new default-directory)
(message "Copied to clipboard"))) (message "Copied to clipboard")))
(evil-define-command doom:compile (command &optional bang)
(interactive "<a><!>")
(let ((default-directory (if bang (doom-project-root t) default-directory)))
(compile command)))
;; ;;
;; Commands ;; Commands
@ -90,7 +95,7 @@
(ex! "sw[oop]" #'+helm:swoop) (ex! "sw[oop]" #'+helm:swoop)
(ex! "todo" #'+helm:todo))) (ex! "todo" #'+helm:todo)))
;; Project tools ;; Project tools
(ex! "build" #'+eval/build) (ex! "compile" #'doom:compile)
(ex! "debug" #'+debug/run) (ex! "debug" #'+debug/run)
(ex! "er[rors]" #'flycheck-list-errors) (ex! "er[rors]" #'flycheck-list-errors)
;; File operations ;; File operations