瀏覽代碼

Update rg command

master
10sr 3 年之前
父節點
當前提交
f70a964541
簽署人: 10sr GPG 金鑰 ID: 7BEC428194130EB2
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      emacs.el

+ 4
- 1
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"


Loading…
取消
儲存