From e97051872a6235a9b2780ad39f7d4a8f2f3e9d9d Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 29 Jun 2024 11:53:35 -0500 Subject: [PATCH] Use ripgrep in emacs --- user/app/doom-emacs/config.el | 6 ++++++ user/app/doom-emacs/doom.org | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index 6af68b7..5107ccb 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -204,6 +204,10 @@ ;; For camelCase (global-subword-mode 1) +;; ripgrep as grep +(setq grep-command "rg -nS --no-heading " + grep-use-null-device nil) + ;; Mini-frames ;; cool but kinda suboptimal atm ;(add-load-path! "~/.emacs.d/mini-frame") ;(require 'mini-frame) @@ -699,6 +703,8 @@ If the path from LINK does not exist, nil is returned." org-roam-db-choice) ) +(setq org-roam-list-files-commands '(rg)) + (setq full-org-roam-db-list nil) (setq full-org-roam-db-list (directory-files "~/Org" t "\\.[p,s]$")) diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index 87ac71d..9540789 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -267,6 +267,10 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu ;; For camelCase (global-subword-mode 1) +;; ripgrep as grep +(setq grep-command "rg -nS --no-heading " + grep-use-null-device nil) + ;; Mini-frames ;; cool but kinda suboptimal atm ;(add-load-path! "~/.emacs.d/mini-frame") ;(require 'mini-frame) @@ -835,6 +839,8 @@ exit org-roam-db-choice) ) +(setq org-roam-list-files-commands '(rg)) + #+END_SRC *** Multi Org Roam Configuration #+BEGIN_SRC emacs-lisp :tangle config.el