emacs 23.1 windows find-grep

标签 emacs

我安装了新版本的 emacs 23.1,我看到的第一个区别是,在 M-x find-grep 之后,需要 5-7 秒才能显示标准命令“find . -type f -print0 | xargs -0 -e” grep -n ".

在 23.1 的发行说明中,有一些关于“更智能的迷你缓冲区完成”的内容。当命令立即出现时,我可以禁用此功能并返回到旧的实现吗?

答案:有必要放在 .emacs 中的某个位置

(setq grep-highlight-matches nil)

避免需要很长时间的调用(grep-probe)

最佳答案

第一次运行后它会变得更快还是一直很慢?

它看起来像 find-grep (这只是 grep-find 的别名,很好!)运行 grep-compute-defaults设置一堆元信息(grep 的位置、如何调用 find 等);我想知道这是否是您所看到的缓慢?看来您可以保存 grep-host-defaults-alist 的值并回避此过程? (需要注意的是,如果有任何变化,等等......)

关于emacs 23.1 windows find-grep,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1231651/

相关文章:

emacs - 如何在 SLIME 中启用彩虹括号?

emacs - 在 Emacs 中使用 split-window-below。如何获取底部窗口的缓冲区?

emacs - 从 Racket REPL 更改输出打印样式

emacs - 在 emacs 中交换 ctrl 和 alt 键

emacs - Hook emacs(交互式)文件输入中的制表符完成?

emacs - 在组织模式下将CREATED date属性添加到TODO

emacs - 如何在Emacs Lisp中求和数字列表?

emacs - 添加到列表 'load-path doesn' t 似乎工作

html - org-html-publish-to-html 上的神秘消息

javascript - 如何配置 emacs 以编辑包含 Javascript 的 HTML 文件?