emacs - 在 Emacs 中,如何从文件开头搜索?

标签 emacs org-mode

在 Emacs 中,如何指示 isearch-forward 不从点的位置搜索,而是从文件的开头搜索?

最佳答案

最简单的选择是在调用 isearch 之前使用 M-< 将点移动到文件的开头。或者,您可以编写一个命令来为您执行此操作:

(defun isearch-from-buffer-start ()
  (interactive)
  (goto-char (point-min))
  (isearch-forward))
(global-set-key [(control s)] 'isearch-from-buffer-start)

关于emacs - 在 Emacs 中,如何从文件开头搜索?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17760269/

相关文章:

emacs - 如何为不同的主要模式使用相同的文件扩展名

emacs - 使用 Emacs 以组织模式启动

html - 组织模式中日期标签的颜色发布到 HTML 和文本周围的框

Emacs + 流浪汉 + plink

c++ - 如何加载 cedet、语义等。 al 仅当 .cxx,.h .cpp 文件打开时

ruby - Emacs ruby​​ 模式缩进行为

macos - 在 Mac 上使用 C-SPC 突出显示时打开背景颜色?

emacs - 使用Emacs的org模式的漂亮网站

emacs - 如何在 emacs orgmode 和/或议程 View 中按属性值排序/搜索?