From 3a52fcd76fe2313e041a6d3b45913dc2a6159779 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 11 Jun 2023 08:42:21 +0200 Subject: Emacs: allow consult-ripgrep to follow symbolic links This makes it usable when browsing emacs package sources in the nix store, for example --- user/emacs/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'user/emacs/init.el') diff --git a/user/emacs/init.el b/user/emacs/init.el index af8310d7..259d48ae 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -244,7 +244,10 @@ With two prefix arguments, write out the day and month name." :general ([remap isearch-forward] #'consult-line [remap isearch-backward] #'consult-line [remap project-switch-to-buffer] #'consult-project-buffer - [remap project-search] #'consult-ripgrep)) + [remap project-search] #'consult-ripgrep) + :config (progn + (setq consult-ripgrep-args + "rg --null --line-buffered --color=never --max-columns=1000 --path-separator / --smart-case --no-heading --with-filename --line-number --search-zip --follow"))) (use-package smerge-mode :after magit -- cgit 1.4.1