Malcolm Yoke Hean Low

Web page of Malcolm Yoke Hean Low, School of Computer Engineering, NTU

Google





View Malcolm Low's profile on LinkedIn

Quick Guide to Emacs

Posted on Sunday, January 08, 2006 at 11:52 PM by Malcolm

Quick Guide to Emacs

Here is a quick guide to emacs. These are a collections of commonly used keystrokes. See also:


Key Definitions

  • Ca-Cb : Press [Control][a] follow by [Control][b].
  • Ma-b : Press [Esc][a] follow by [b].
  • F1-t : Press function key [F1] follow by [t].

Tutorial

  • Please go through the Emacs tutorial If you haven't done so : Ch-t or F1-t

Useful things to put in .emacs

  • Show line number : (line-number-mode 1)
  • Show column number : (column-number-mode 1)
  • Show time : (display-time)

Navigations

  • Quit : Cx-Cc
  • Move between windows : Cx-o
  • Goto a line : Mg

Editing

  • Cut : Ck
  • Paste : Cy
  • Select/mark region : C[space]
  • Exchange mark and point : CxCx
  • Cut rectangle region : Cx-Rk
  • Paste rectangle region : Cx-Ry

Search

  • Quick search forward : Cs
  • Quick search backward : Cr

Keystroke Record/Playback

  • Record : Cx-(
  • Playback : Cx-)

Various Different useful modes

You can enhance XEmacs with various useful features. The following two two packages can be installed with minimal effort. Email me if you require any help in installing them.

  • Flyspell : On-the-fly spelling checker.
  • X-Symbol : Enables the showing of superscript, subscript and greek characters in LaTex.





Bookmark and Share

Edited on: Tuesday, April 22, 2008 1:04 PM

Posted in General (RSS)