文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Emacs Beginner's Howto

Emacs Beginner's Howto

时间:2005-12-27  来源:phantomblue

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-< beginning of buffer
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...
排行榜 更多 +
马里奥赛车世界游戏手机版下载

马里奥赛车世界游戏手机版下载

赛车竞速 下载
无畏契约皮肤开箱器手游下载

无畏契约皮肤开箱器手游下载

休闲益智 下载
旭日之城官方正版下载

旭日之城官方正版下载

策略塔防 下载