Emacs编辑命令速查2【摘自Learning Gnu Emacs】
|
Keystrokes |
Command name |
Action |
|---|---|---|
|
C-M-s Enter Edit |
re-search-forward |
Search for a regular expression forward. |
|
C-M-r Enter Edit |
re-search-backward |
Search for a regular expression backward. |
|
C-M-s Edit |
isearch-forward-regexp |
Search incrementally forward for a regular expression. |
|
C-M-r Edit |
isearch-backward-regexp |
Search incrementally backward for a regular expression. |
|
C-M-% Edit |
query-replace-regexp |
Query-replace a regular expression. |
|
Keystrokes |
Command name |
Action |
|---|---|---|
|
(none) Tools |
ispell-buffer |
Check spelling of the buffer. |
|
(none) Tools |
ispell-comments-and-strings |
Checks spelling of comments and strings in a program. |
|
(none) Tools |
flyspell-mode |
Enter the flyspell minor mode, in which incorrectly spelled words are highlighted. |
|
(none) |
flyspell-buffer |
Spell-check the current buffer, underlining all misspelled words. Use middle mouse button to correct. |
|
Keystrokes |
Command name |
Action |
|---|---|---|
|
C-x b Buffers |
switch-to-buffer |
Move to the buffer specified. |
|
C-x |
next-buffer |
Move to the next buffer in the buffer list. |
|
C-x Buffers |
previous-buffer |
Move to the previous buffer in the buffer list. |
|
C-x C-b Buffers |
list-buffers |
Display the buffer list. |
|
C-x k |
kill-buffer |
Delete the buffer specified. |
|
(none) |
kill-some-buffers |
Ask about deleting each buffer. |
|
Keystrokes |
Command name |
Action |
|---|---|---|
|
C-x 2 File |
split-window-vertically |
Divide current window into two windows, one above the other. |
|
C-x 3 |
split-window-horizontally |
Divide current window into two side-by-side windows. |
|
C-x o |
other-window |
Move to the other window; if there are several, move to the next window. |
|
C-x 0 |
delete-window |
Delete the current window. |
|
C-x 1 File |
delete-other-windows |
Delete all windows but this one. |
|
C-x 4 f |
find-file-other-window |
Find a file in the other window. |
|
C-x 4 b |
switch-to-buffer-other-window |
Select a buffer in the other window. |
|
(none) Tools |
compare-windows |
Compare this window with the next window and show the first difference. |
|
C-x 5 o Buffers |
other-frame |
Move to other frame. |
|
C-x 5 0 File |
delete-frame |
Delete current frame. |
|
C-x 5 2 File |
make-frame |
Create a new frame on the current buffer. |
|
C-x 5 f |
find-file-other-frame |
Find file in a new frame. |
|
C-x 5 r |
find-file-read-only-other-frame |
Finds a file in a new frame, but it is read-only. |
|
C-x 5 b |
switch-to-buffer-other-frame |
Make frame and display other buffer in it. |
|
Keystrokes |
Command name |
Action |
|---|---|---|
|
(none) |
shell |
Enter shell mode. |
|
C-c C-c Signals |
comint-interrupt-subjob |
Interrupt current job; equivalent to C-c. |
|
C-c C-z Signals |
comint-stop-subjob |
Suspend or stop a job; C-z in Unix shells. |
|
M-p In/Out |
comint-previous-input |
Retrieve previous commands (can be repeated to find earlier commands). |
|
M-n In/Out |
comint-next-input |
Retrieve subsequent commands (can be repeated to find more recent commands). |
|
Enter |
comint-send-input |
Send input on current line. |
|
Tab |
comint-dynamic-complete |
Complete current command, filename, or variable name. |
|
Keystrokes |
Command name |
Action |
|---|---|---|
|
C-x d File |
dired |
Start Dired. |
|
C Operate |
dired-do-copy |
Copy file. |
|
d Mark |
dired-flag-file-deletion |
Flag for deletion. |
|
D Operate |
dired-do-delete |
Query for immediate deletion. |
|
f |
dired-advertised-find-file |
Find (so you can edit). |
|
g Immediate |
revert-buffer |
Reread the directory from disk. |
|
m or * m Mark |
dired-mark |
Mark with *. |
|
Q Operate |
dired-do-query-replace |
Query replace string in marked files. |
|
R Operate |
dired-do-rename |
Rename file. |
|
s |
dired-sort-toggle-or-edit |
Sort the Dired display by date or by filename (toggles between these). |
|
t Mark |
dired-toggle-marks |
Toggle marks on files and directories; pressing t once marks all unmarked files and directories; pressing t again restores original marks. |
|
u Mark |
dired-unmark |
Remove mark. |
|
+ Immediate |
dired-create-directory |
Create a directory. |
|
* ! or M-Del Mark |
dired-unmark-all-files |
Remove all marks from all files. |
浙公网安备 33010602011771号