summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-06-11 08:42:21 +0200
committerAlan Pearce2023-06-11 08:42:21 +0200
commit3a52fcd76fe2313e041a6d3b45913dc2a6159779 (patch)
tree70bdfb903980cfa0123fc77f09a930ea649c47d9 /user/emacs
parent16db58be43b3731911c616a3e1ae41a59aa4a98d (diff)
downloadnixfiles-3a52fcd76fe2313e041a6d3b45913dc2a6159779.tar.lz
nixfiles-3a52fcd76fe2313e041a6d3b45913dc2a6159779.tar.zst
nixfiles-3a52fcd76fe2313e041a6d3b45913dc2a6159779.zip
Emacs: allow consult-ripgrep to follow symbolic links
This makes it usable when browsing emacs package sources in the nix
store, for example
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el5
1 files changed, 4 insertions, 1 deletions
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