From f70a9645417263eac52f2b6514e47f1c66783a65 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 23 Sep 2021 22:16:25 +0900 Subject: [PATCH] Update rg command --- emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index edf1fc2..2fc36de 100644 --- a/emacs.el +++ b/emacs.el @@ -451,6 +451,9 @@ Otherwize hook it." ;; (global-set-key (kbd "C-s") 'isearch-forward-regexp) ;; (global-set-key (kbd "C-r") 'isearch-backward-regexp) (set-variable 'search-default-mode t) +(set-variable 'search-whitespace-regexp ".*?") +(set-variable 'isearch-regexp-lax-whitespace t) +;; (replace-regexp-in-string "\n" "" (prescient-fuzzy-regexp "abc")) ;; TODO: Do not depend on ivy function ;; (set-variable 'search-default-mode ;; (lambda (str lax) @@ -2581,7 +2584,7 @@ condition to choose COMMAND when evaluated.") ;; ripgrep ("rg" (executable-find "rg") - "rg -nH --no-heading --hidden --glob '!.git/' --smart-case -M 1280 ") + "rg -nH --no-heading --hidden --no-ignore-parent --glob '!.git/' --smart-case -M 1280 ") ;; git grep ("gitgrep"