4.3. Emacs - The End (Well at Least the Last Slide)
-
Basic search in emacs is done with C-s.
-
Search and replace is done with M-%.
-
Emacs does syntax highlighting. You can easily enable this by selecting
it in the Options menu.
-
Emacs will align your source code automatically. You can use the tab key
to re-align a specific line. Always re-align from top to bottom.
-
You can recompile your code while inside Emacs. Type M-x compile.
A new buffer will open and it will display compilation results. You can
go through them easily while having your cursor jump to where the errors
are using C-x `. (backquote).
-
To maximize the current buffer to cover all of the Emacs window use
C-x 1, (C-x 2 will split the buffer)
-
We will look at a little example program that we will edit & compile
with Emacs: test.c.
-
A useful time saver: expand abbreviations with M-/.
Written by Shlomi Fish