Monday, March 31, 2014

Emacs commands

                                                   EMACS COMMANDS       
 
  • The user uses special keys to send commands to Emacs.
  • Commands in emacs are either control characters (hold down the <Ctrl>key while typing another character) or are prefixed by one of a set of reserved characters: <Esc> or <Ctrl>-X.
  • The (Meta Key) <Esc> key can be typed by itself (because it really is a character) and then followed by another character;
  • The <Ctrl> key must be held down while the next character is being typed.
            Help commands


C-h
help-command: first character in lots of useful help commands
C-h t
help-with-tutorial: command to run the tutorial
C-h i
information: describes most of the emacs commands in man style pages
C-h k
describe-key: tells you what a particular key stroke does
C-h a
command-apropos: prompts for a string and
  then searches for all emacs commands that contains that string
ESC ?
also does command-apropos
C-h ?
help-for-help: describes how to use the help facilities
File Reading and Writing Commands


C-x C-f
find-file: first prompts for a filename and
  then loads that file into a editor buffer of the same name
C-x C-s
save-buffer: saves the buffer into the associated filename
C-x C-w
write-named-file: prompts for a new filename and writes the buffer into it

Cursor/ Screen Movement Commands
 

C-a
Move cursor to beginning of line
C –e
Move cursor to end of line
C –f
Move cursor forward one character
C-b
Move cursor backward one character
C-n
Move cursor to next line
C-p
Move cursor to previous line
C-v
Scroll file forward by one screenful
 
Esc  v
Scroll file backward by one screen full
Esc  <
Go to beginning of buffer.
Esc  >
Go to end of buffer.
Esc  f
Move cursor forward one word.
Esc  b
Move cursor backward one word.

No comments:

Post a Comment