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."