Emacs Search

參考:GNU Emacs manual:Searching and Replacement

incremental search

C-s isearch-forward
C-s C-s Search for most recently searched item
C-s M-p Previous item in search history
C-s M-n Next item in search history
C-h k C-s Guide to more commands available in incremental search
C-r Backward incremental search

Search and replacement

M-%
Query replace
y replace the current match.
n skip to the next match without replacing.
q exit without doing any more replacements.
. replace this match, then exit.
! replace all remaining matches with no more questions.

Regular expression search

C-M-s
M-x isearch-forward-regexp
C-M-r
M-x isearch-backward-regexp

取代

M-x query-replace-regexp

M-x replace-string

M-x replace-regexp

[ 書籤 | 搜尋 | blog | 留言 | Home ]

Firefox Emacs Muse Debian

最後更新 二月 8, 2008 , by alan

Creative Commons License
本 著作 係採用 創用 CC 姓名標示-非商業性-相同方式分享 2.5 台灣 授權條款授權.