home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit b57be9326513d707bdf112db0daf7c5eb4db8039
parent 682420b0a9c8b32872b0320c0303c9f46f71d279
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 18 Dec 2023 09:52:05 +0100

tools/emacs: fix rg-buffer-name

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-search.el | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/emacs/config/config-search.el b/tools/emacs/config/config-search.el @@ -103,9 +103,9 @@ confines of word boundaries (e.g. multiple words)." (cl-pushnew '("gotest" . "*_test.go") rg-custom-type-aliases) (defun vde/rg-buffer-name () "Generate a rg buffer name from project if in one" - (let ((p (project-current))) + (let ((p (project-root (project-current)))) (if p - (format "rg: %s" (abbreviate-file-name (cdr p))) + (format "rg: %s" (abbreviate-file-name p)) "rg"))) (setq rg-buffer-name #'vde/rg-buffer-name)) ;; -UseRG