Emacs: allow consult-ripgrep to follow symbolic links This makes it usable when browsing emacs package sources in the nix store, for example
Alan Pearce alan@alanpearce.eu
Sun, 11 Jun 2023 08:42:21 +0200
1 files changed, 4 insertions(+), 1 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -244,7 +244,10 @@ (use-package consult :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