Skip to content

Commit 893dc12

Browse files
committed
use projectile when available
1 parent de62173 commit 893dc12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hog.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ Can be set in dir-locals to be changed on a per-project basis.")
5959

6060
(defun hog--project-root ()
6161
"Get the root of the current version controlled project."
62-
(expand-file-name (or (vc-root-dir)
62+
(expand-file-name (or (and (fboundp 'projectile-project-root) (projectile-project-root))
63+
(vc-root-dir)
6364
(locate-dominating-file default-directory ".git"))))
6465

6566
(defun hog--get-projects ()

0 commit comments

Comments
 (0)