X-Git-Url: https://code.delx.au/dotemacs/blobdiff_plain/4ff6c83a5d5af65513c36b0d9ea37073903ce6df..36ac20729048d36c9559eb1d58e28f11dbd4eeb9:/lisp/my-file-modes.el diff --git a/lisp/my-file-modes.el b/lisp/my-file-modes.el index 455ef6c..3b3436a 100644 --- a/lisp/my-file-modes.el +++ b/lisp/my-file-modes.el @@ -48,7 +48,7 @@ (defun tern-project-dir () (or (and (equal tern-last-file-name (buffer-file-name)) tern-project-dir) (and (not (buffer-file-name)) (setf tern-project-dir "")) - (setf tern-project-dir (locate-dominating-file default-directory ".git"))) + (setf tern-project-dir (expand-file-name (locate-dominating-file default-directory ".git")))) ;; Track the file name to detect if it changed, which means the project ;; directory needs to be found again. (setf tern-last-file-name (buffer-file-name))