在emacs中更改find​​-grep命令的默认光标位置

时间:2016-04-04 06:58:23

标签: bash emacs

我更改了默认AbstractClass命令 (由this answer帮助。)

我的init.el正在关注。

onCreate()

然后我执行SomeClass,我得到了迷你缓冲区,光标位于行尾 我想将默认光标位置更改为find-grep

之后
(grep-apply-setting 'grep-find-command "find . -type d \\( -name '.git' \\) -prune -o -type f  -exec grep -nH -e  \\{\\} +")

这可能吗?

感谢。

1 个答案:

答案 0 :(得分:2)

init.el中的代码更改为以下内容:

(grep-apply-setting 'grep-find-command '("find . -type d \\( -name '.git' \\) -prune -o -type f  -exec grep -nH -e  \\{\\} +" . 72))
相关问题