diff --git a/modules/editor/evil/+commands.el b/modules/editor/evil/+commands.el index 704d04acd..69b9082ba 100644 --- a/modules/editor/evil/+commands.el +++ b/modules/editor/evil/+commands.el @@ -73,8 +73,9 @@ (evil-ex-define-cmd "pg[grep]d" #'+helm:project-search-from-cwd))) ;;; Project tools -(evil-ex-define-cmd "compile" #'+evil:compile) -(evil-ex-define-cmd "mak[e]" #'+evil:make) +(evil-ex-define-cmd "com[pile]" #'+evil:compile) +(evil-ex-define-cmd "make" #'+evil:make) +(evil-ex-define-cmd "mk" #'+evil:make) ; convenience alias (evil-ex-define-cmd "debug" #'+debugger/start) (evil-ex-define-cmd "er[rors]" #'flycheck-list-errors) diff --git a/modules/editor/evil/autoload/ex.el b/modules/editor/evil/autoload/ex.el index a6405b950..09b18ed70 100644 --- a/modules/editor/evil/autoload/ex.el +++ b/modules/editor/evil/autoload/ex.el @@ -110,10 +110,11 @@ If BANG is non-nil, open compilation output in a comint buffer. If BANG, then run ARGUMENTS as a full command. This command understands vim file modifiers (like %:p:h). See `+evil-resolve-vim-path-a' for details." (interactive "") - (+evil:compile (format "make %s" - (evil-ex-replace-special-filenames - arguments)) - bang)) + (let ((compile-command "make")) + (+evil:compile (if (stringp arguments) + (evil-ex-replace-special-filenames arguments) + "") + bang))) ;;;###autoload (autoload '+evil:compile "editor/evil/autoload/ex" nil t) (evil-define-command +evil:compile (arguments &optional bang)