- 论坛徽章:
- 0
|
Emacs Beginers's Howto
笔记
Terminoloyg of Emacs
buffers: A copy of the file that is currently in memory, or the result of a command.
point: lives the space between characters on in the buffer.
cussor: the visual representation of the pointe.
windows: an area of the screen in which a buffer is displayed.
frames: a separate X window in which an Emacs buffer is displayed.
Keyboard Basics Only need to master the basics to get a lot of work done.
All "command keystrokes" in Emacs are actually just shortcuts to functions which are pare of Emacs.
M-x function-name == keyboard shortcut.
M-x save-buffer== C-x C-s.
Command keys(Meta Esc Control Alt)
Emacs makes heavy use of multi-key combination. C--Ctrl, M--Meta(Esc or Atl)
Find help for commands in Emacs: M-x apropos or C-h a.
Moving Around in a Buffer
C-p up on line(up)
C-n down one line(down)
C-f forward one character(left)
C-b backward one character(right)
C-a beginning of line
C-e end of line
C-v down one page
M-v up on page
M-f forward one word
M-b backward one word
M- end of buffer
C-g quit current operation
Essential Commands
C-x C-s save-buffer Save the current buffer to disk
C-x u undo Undo the last operation
C-x C-f find-file Open a file from disk
C-s isearch-forward Search forward for a string
C-r isearch-backward Search backward for a string
replace-string Search & replace for a string
replace-regexp Search & replace using regexp
C-h t help-with-tutorial Use the interactive tutorial
C-h f describe-function Display help for a function
C-h v describe-variable Display help for a variable
C-h x describe-key Display what a key sequence does
C-h a apropos Search help for string/regexp
C-h F view-emacs-FAQ Display the Emacs FAQ
C-h i info Read the Emacs documentation
C-x r m bookmark-set Set a bookmark. Useful in searches
C-x r b bookmark-jump Jump to a bookmark.
Tab Completion
Command completions in bash was modeled after that in Emacs.
So...
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12391/showart_63657.html |
|