Commit 5e03ddb07c0b

Vincent Demeester <vincent@sbr.pm>
2025-01-07 18:23:44
tools/emacs: fix config-search.el
Use directly the `executable-find` function Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 961c868
Changed files (1)
tools
emacs
tools/emacs/config/config-search.el
@@ -109,7 +109,7 @@ confines of word boundaries (e.g. multiple words)."
 
 ;; UseRG
 (use-package rg
-  :if *rg*
+  :if (executable-find "rg")
   :commands (rg rg-project rg-dwim)
   :bind (("M-s r r" . rg)
          ("M-s r p" . rg-project)