01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CH02.fm Page 19 Monday, October 7, 2002 8:09 PM<br />

Emacs 19<br />

ments today. From within the editor a user can read <strong>and</strong> send mail, perform research on the Internet,<br />

<strong>and</strong> even send out for coffee to RFC2324 compliant coffee makers.<br />

Configuration of Emacs is accomplished via the .emacs file that can be created in each<br />

user’s $HOME directory. If the configuration does not exist, Emacs will use its built-in<br />

defaults. This file consists of a series of elisp expressions that the editor evaluates when the<br />

application runs.<br />

2.2.1 <strong>Using</strong> Emacs<br />

Navigating <strong>and</strong> using Emacs may appear confusing <strong>and</strong> counter-intuitive for those just learning<br />

how to use the editor, however the time taken to master this editor can prove well-spent when<br />

one considers the time savings that such an integrated <strong>and</strong> flexible development environment can<br />

provide.<br />

If Emacs is started from within X-Windows, it will automatically open a new window in<br />

the desktop. To prevent this behavior, you can use the –nw option from the comm<strong>and</strong> line. Alternately,<br />

you can tell Emacs how large to make the window by specifying the size of the window,<br />

in characters, that you wish to create. Examples are:<br />

$ emacs –nw main.c<br />

$ emacs –geometry 80x24 main.c &<br />

Figure 2-1 shows the initial Emacs screen if it is invoked without an initial file name.<br />

Figure 2-1 <strong>The</strong> initial Emacs screen.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!