JAMBE LOGO JAMBE Slogan :- Get Wisdom Get Understanding Proverbs 4:5
Sections:

EMACS is a very powerful text editor originaly designed for Unix. I has a heavy bias towards software developments with built in 'modes' for major programming languages. These mode color the text say for a variable emacs would color it green, then for a function definition it would color it blue, and so on. Emacs will also automaticly indent your code when you press tab, or when you just press enter. It is also useful for creating webpages and the like. Because it was originaly intended for the command line everything can be done useing key bindings. Below is a list of some of the most useful.

(click here for a printable copy of this page)

(click here for a word document with just the key shortcuts)

(Jump to Download information)

C-key   => hold down ctrl and press key

M-key  => hold Alt (or windows Key under linux) and press key

 

Essential Commands

C-h

help

C-x u / C-_

undo

C-x C-g

get out of current operation or command

C-x C-s

save the file

C-x C-c

close Emacs

 

 

Cursor movement

C-f

forward one character

C-b

back one character

C-p

previous line

C-n

next line

C-a

beginning of line

C-e

end of line

C-l

center current line on screen

C-v

scroll forward

M-v

scroll backward

M-f

forward one word

M-b

back one word

M-a

beginning of sentence

M-e

end of sentence

M-[

beginning of paragraph

M-]

end of paragraph

M-<

beginning of buffer

M->

end of buffer

 

 

Other Important Functions

M-(n)

repeat the next command (n) times

C-d

delete a character

M-d

delete a word

C-k

kill line

M-k

kill sentence

C-s

search forward

C-r

search in reverse

M-%

query replace

M-c

capitalize word

M-u

uppercase word

M-l

lowercase word

C-t

transpose characters

M-t

transpose words

C-@ / C-spc

mark beginning of region

C-w

cut--wipe out everything from mark to point

M-y

Change yanked text for previous

C-y

paste--yank deleted text into current location

M-q

reformat paragraph

M-g

reformat each paragraph in region

M-x auto-fill-mode

turn on word wrap

M-x goto-line <return> 16

move cursor to line 16

M-w

copy region marked

C-x C-f

find file and read it

C-x C-v

find and read alternate file

C-x i

insert file at cursor position

C-x o

Move to other window

C-x C-s

save file

C-x C-w

write buffer to a different file

C-x C-c

exit emacs, and be prompted to save

C-x 4 C-f

Find file and open in other window

C-M-v

Scroll other Window down

To download emacs for windows goto:

http://www.gnu.org/software/emacs/emacs.html - for the Emacs Homepage

ftp://ftp.gnu.org/gnu/windows/emacs/  - for the windows Version

To compile C++ code you will need a compiler, use the link below to see more about that:

My Uni's Emacs/GCC Resource page

This link also has a default.el file which you put in your emacs directory to add a special menu for compiling and running C++ code. This is a very handy feature.

The contents of this page, and linked documents are Copyright to James Brunskill and may not be used without permission