Skip to content

Instantly share code, notes, and snippets.

@jthaman
Last active March 16, 2025 19:24
Show Gist options
  • Save jthaman/c4eb411defc98f82cfd85c8c0d4c67e0 to your computer and use it in GitHub Desktop.
Save jthaman/c4eb411defc98f82cfd85c8c0d4c67e0 to your computer and use it in GitHub Desktop.
Call ripgrep-all in emacs with consult
;; New versions of consult make this dramatically simpler than it used to be. Just one function that you can bind to a key:
;;;###autoload
(defun consult-ripgrep-all (&optional dir initial)
(interactive "P")
(let ((consult-ripgrep-args "rga --null --line-buffered --color=never --max-columns=1000 --smart-case --no-heading --with-filename --line-number"))
(consult-ripgrep dir initial)))
@jthaman
Copy link
Author

jthaman commented Jun 2, 2023

same, same.

@g-simmons
Copy link

ty for posting! probably saved me an hour or more 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment