Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Emacs 中,我如何指示isearch-forward不是从点的位置,而是从文件的开头进行搜索?
isearch-forward
M-<最简单的选择是在调用 isearch 之前将点移动到文件的开头。或者,您可以编写一个为您执行此操作的命令:
(defun isearch-from-buffer-start () (interactive) (goto-char (point-min)) (isearch-forward)) (global-set-key [(control s)] 'isearch-from-buffer-start)