Eval compile-command in :make

In case it is a set to a lisp form by a file local variable.
This commit is contained in:
Henrik Lissner 2018-08-24 17:53:21 +02:00
parent 6a39b98f67
commit d59f36eee1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -25,7 +25,7 @@ command from the current directory instead of the project root."
(interactive "<sh><!>")
(let ((default-directory (if from-pwd default-directory (doom-project-root t))))
(compile (or (if command (evil-ex-replace-special-filenames command))
compile-command))))
(eval compile-command)))))
(evil-define-command doom:reverse-lines (beg end)
"Reverse lines between BEG and END."