Date: 29 Mar 2009
This list comes handy when working for hte first time with emacs:
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
EMACS COMMANDS
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
NOTE : Key combinations with the Control key are pressed simultaneously,
but for combinations with the Escape key press [Esc] first and then the other key.
______________
___NOTATION___
C-x Prefix used to manipulate
RET Return key
SPC The space bar
ESC The escape key, or, equivalently, C-[
M-.. The META character (usually escape key)M-x = ESC-x (But it can also be the ALT key)
[ALWAYS DO C-x BEFORE ANY OTHER COMMAND]
_________________________________________________
___FILES, BUFFERS (Opened Windows) AND WINDOWS___
OPEN FILE C-x C-f
CLOSE FILE C-x k (kill buffer)
SAVE CHANGES C-x C-s
SAVE CHANGES AS C-x C-w (Write new file name and press ENTER)
UNDO C-_ (Underbar or underscore) or C-x u
SEARCH C-s
SWITCH BUFFERS C-x b
LIST BUFFERS C-x C-b
EXIT EMACS C-x C-c
UNSPLIT WINDOW C-x 1
C-x 1 -- one window,
C-x 2 -- two horizontal windows, and
C-x 3 -- two vertical windows.
___________________
___HOW TO SEARCH___
>> Now type C-s to start a search. Type the word 'BUFFERS', Now you have searched for "BUFFERS", once.
>> Type C-s again, to search for the next occurrence of "BUFFERS" (finds forwards).
>> Now type four times and see how the cursor moves (it finds backwards).
>> Type to terminate the search.
_______________________
___MOVING THE CURSOR___
* Move to the Top of the file: [Esc] <
* Move to the End of the file: [Esc] >
* Next screen (page down): [Ctrl-V]
* Previous screen (page up): [Esc] V
* Start of the current line: [Ctrl-A]
* End of the current line: [Ctrl-E]
* Forward one word: [Esc] F
* Backward one word: [Esc] B
* Next Line [Ctrl-n]
* Next paragraph [Esc] }
__________________________
___CUT, COPY, AND PASTE___
*** First you set a mark
- either at the beginning or the end of the block of text that you want to cut or copy
- then move the cursor to the other end of the block of text and use the delete or copy command.
If you are copying, then move to the location where you want to paste and hit the paste command.
* Set a mark: [Ctrl-spacebar] or [Ctrl-@]
* Delete: [Ctrl-W]
* Copy: [Esc] W
* Paste: [Ctrl-Y]
________________
___SUBVERSION___
M-x vc-next-action (Where M is the ALT key)
___________________
___READ AS UTF-8___
C-x C-m r utf-8
___________________
___SAVE AS UTF-8___
C-x C-m f utf-8 (You will type utf-8 when asked about the coding system)