Change :make to reuse last command

Unless given a command.
This commit is contained in:
Henrik Lissner 2018-08-24 12:36:16 +02:00
parent 9eee22e3fc
commit 62b9166871
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -23,9 +23,9 @@
"Run the current project Makefile's COMMAND. If FROM-PWD (bang), run the make "Run the current project Makefile's COMMAND. If FROM-PWD (bang), run the make
command from the current directory instead of the project root." command from the current directory instead of the project root."
(interactive "<sh><!>") (interactive "<sh><!>")
(let ((default-directory (if from-pwd default-directory (doom-project-root t))) (let ((default-directory (if from-pwd default-directory (doom-project-root t))))
(command (and command (evil-ex-replace-special-filenames command)))) (compile (or (if command (evil-ex-replace-special-filenames command))
(compile command))) compile-command))))
(evil-define-command doom:reverse-lines (beg end) (evil-define-command doom:reverse-lines (beg end)
"Reverse lines between BEG and END." "Reverse lines between BEG and END."