Emacs 单词搜索

标签 emacs elisp

当我在文档中搜索时,我几乎总是需要使用精确单词搜索,因此我会使用大量 C-sM-s w 组合键来输入 I-search首先模式,然后打开单词模式。

有没有办法在 I-search 模式下默认打开单词模式,以便搜索以精确单词模式开始 - 最好只需要 M-s w 来关闭单词模式?

谢谢, 本

最佳答案

您无需先按 C-sM-s w 进行单词搜索。它绑定(bind)到 isearch-forward-word,如果您不想使用 M-s w,可以将其绑定(bind)到另一个键。

(如果您想要非增量搜索,请使用M-s w RET。)

这一切都在 Emacs 手册中进行了解释,节点 Word Search 。您可以在 Emacs 中使用 C-h r i word search 找到该内容。

关于Emacs 单词搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35433400/

相关文章:

emacs - 如何将一组对列表添加到 auto-mode-alist 上?

c - 腻子 Shift 箭头

emacs - 为什么我在 native 使用 Google Drive API 时收到 "The authenticated user has not installed the app with client id"错误?

matrix - 用普通的 lisp 写一个简单的矩阵类来练习

function - elisp:测试一个对象是一个函数

emacs - 在加载时以缓冲区模式启动 emacs sr-speedbar

emacs - 事件窗口的自定义背景

list - 如何从自动模式列表中删除项目(Emacs)

emacs - 将 Unicode (UTF-8) 代码点转换为字节

emacs - 如何在 Emacs 中使用通用键绑定(bind)弹出本地和全局标记