completion/ivy: use counsel-compile
Wrote wrappers to replace compile and projectile-compile-project.
This commit is contained in:
parent
957e1dd080
commit
d5e6c8813e
2 changed files with 19 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue