diff options
author | Yuchen Pei <id@ypei.org> | 2023-08-14 18:04:29 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-08-14 18:04:29 +1000 |
commit | c8e22f94fc0fbbb4568b382e6e3ce593a99ad914 (patch) | |
tree | 900c089642ab803b30d9a748ea30767f813dd273 /emacs/.emacs.d/lisp/my/my-consult.el | |
parent | 237190c09919bc437ebe9a6f54d42bce207ee5c5 (diff) |
[emacs] Some minor tweaks
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-consult.el')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-consult.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-consult.el b/emacs/.emacs.d/lisp/my/my-consult.el index aa71ac6..885cdfc 100644 --- a/emacs/.emacs.d/lisp/my/my-consult.el +++ b/emacs/.emacs.d/lisp/my/my-consult.el @@ -31,7 +31,7 @@ ...depending whether we are in the git repo." (interactive) - (if (vc-git-root (buffer-file-name)) + (if (vc-git-root (or (buffer-file-name) default-directory)) (consult-git-grep default-directory nil) (consult-grep default-directory nil))) |