From 62b9166871afcab83771cd02b586fea6cc57a671 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Aug 2018 12:36:16 +0200 Subject: [PATCH] Change :make to reuse last command Unless given a command. --- modules/config/default/+evil-commands.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/config/default/+evil-commands.el b/modules/config/default/+evil-commands.el index cce6952ac..8ce341ac1 100644 --- a/modules/config/default/+evil-commands.el +++ b/modules/config/default/+evil-commands.el @@ -23,9 +23,9 @@ "Run the current project Makefile's COMMAND. If FROM-PWD (bang), run the make command from the current directory instead of the project root." (interactive "") - (let ((default-directory (if from-pwd default-directory (doom-project-root t))) - (command (and command (evil-ex-replace-special-filenames command)))) - (compile command))) + (let ((default-directory (if from-pwd default-directory (doom-project-root t)))) + (compile (or (if command (evil-ex-replace-special-filenames command)) + compile-command)))) (evil-define-command doom:reverse-lines (beg end) "Reverse lines between BEG and END."