From b19d30b145784fc10f1194fc7f727c61876f819b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 14 Mar 2018 18:34:09 -0400 Subject: [PATCH] config/default: replace :build cmd w/ :compile --- modules/config/default/+evil-commands.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/config/default/+evil-commands.el b/modules/config/default/+evil-commands.el index 64a9a0636..979620c44 100644 --- a/modules/config/default/+evil-commands.el +++ b/modules/config/default/+evil-commands.el @@ -17,6 +17,11 @@ (kill-new default-directory) (message "Copied to clipboard"))) +(evil-define-command doom:compile (command &optional bang) + (interactive "") + (let ((default-directory (if bang (doom-project-root t) default-directory))) + (compile command))) + ;; ;; Commands @@ -90,7 +95,7 @@ (ex! "sw[oop]" #'+helm:swoop) (ex! "todo" #'+helm:todo))) ;; Project tools -(ex! "build" #'+eval/build) +(ex! "compile" #'doom:compile) (ex! "debug" #'+debug/run) (ex! "er[rors]" #'flycheck-list-errors) ;; File operations