Info

From here you can browse to the file you want to edit. To traverse up a directory level, go to the double dot entry and hit the Enter key. To traverse down a directory, go to the directory entry and hit the Enter key. When you've found the file you want to edit, just hit the Enter key, and emacs will load it into a new buffer area.

You can list the active buffer areas by hitting the C-x C-b extended command combination. The emacs editor splits the editor window and displays a list of buffers in the bottom window. There are always two buffers that emacs provides besides your main editing buffer:

♦ A scratch area called Scratch

♦ A message area called Messages

The scratch area allows you to enter LISP programming commands, as well as enter notes to yourself. The message area shows messages generated by emacs while operating. If any errors occur while using emacs, they will appear in the message area.

There are two ways to switch to a different buffer area in the window:

• C-x o to switch to the buffer listing window. Use the arrow keys to move to the buffer area you want to use, and hit the Enter key.

• C-x b to type in the name of the buffer area you want to switch to.

When you switch to the buffer listing window, emacs will open the buffer area in the new window area. The emacs editor allows you to have multiple windows open in a single session. The following section discusses how to manage multiple windows in emacs.

Was this article helpful?

0 0

Post a comment