ripgrep是新生搜索工具,速度效率定制都杠杠的。原帖详情请参考:
https://oremacs.com/2017/08/04/ripgrep/
一句话配置就是
(setq counsel-grep-base-command
"rg -i -M 120 --no-heading --line-number --color never '%s' %s")
然后绑定 Swiper 按键
(global-set-key (kbd "C-s") 'counsel-grep-or-swiper)