[Intro to UNIX Software Development]

THE EMACS ENVIRONMENT


Emacs can be used as a unified environment for software development under UNIX. If things are set up properly, you can use it for everything.

We'll assume you're using Emacs 19. On Athena this is now the default. Some places are still using Emacs 18 or Emacs 20.


Key bindings


Buffers and files and windows

C-x C-f
open file in a new buffer

C-x C-w
write file out with a different name

C-x C-s
save buffer under current name

C-x b
switch to buffer

C-x k
kill current buffer

C-g
cancel

C-_
undo

C-x 2
split current window

C-x o
switch to other window

C-x 1
make current window only window

C-x 0
remove current window

C-x 5 2
make another X window

C-x 5 0
delete the current X window


.emacs file and elisp


Regions


Editing C code in c-mode


M-x compile


Tags


Faces and colorization


Adding filename to mode mappings


Using the shell within emacs


Using GDB within emacs


Obtaining more documentation


File management with dired


[BACK][FORWARD]


Prepared by Erik Nygren (nygren@mit.edu) and Mike Whitson (mwhitson@mit.edu)