completion/ivy: use counsel-compile

Wrote wrappers to replace compile and projectile-compile-project.
This commit is contained in:
Henrik Lissner 2019-10-17 01:41:37 -04:00
parent 957e1dd080
commit d5e6c8813e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 19 additions and 1 deletions

View file

@ -471,3 +471,19 @@ active, the last known search is used.
If ALL-FILES-P, search compressed and hidden files as well."
engine)))
;;
;;; Wrappers around `counsel-compile'
;;;###autoload
(defun +ivy/compile ()
"Execute a compile command from the current buffer's directory."
(interactive)
(counsel-compile default-directory))
;;;###autoload
(defun +ivy/project-compile ()
"Execute a compile command from the current project's root."
(interactive)
(counsel-compile (projectile-project-root)))