2. List of topics
● Debate about editors
● Emacs state of art
● Emacs concepts and terms
● Working with emacs
● Common use modes
● Emacs Lisp
Master on Free Software
3. Introduction
● What work do you usually do?
● Thinking about usual tasks for a hacker
● What do you usually do in your daily
work? Or what tasks do you guess you
are going to do?
● Tip: reading/editing text and "using" it for
different purposes (code, emails,
documentation, etc.)
Master on Free Software
4. Introduction (II)
"The editor should be an extension of your hand: make
sure your editor is configurable, extensible, and
programmable." The Pragmatic Programmer
● If you are a hacker you are going to
handle code most of the time, you have
to choose a tool that improves your
performance
Master on Free Software
5. Emacs: text editor? ;-)
● It is the tool chosen by a lot of smart
developers
● History, is was one of the first
applications of the free software
movement, there was commercial
versions in the beginning though
● It stands for "Editing Macros", rumour
has it that it is a play on some Stallman
ice cream store
Master on Free Software
6. Emacs: text editor? ;-) (II)
● The truth is that it is a Lisp interpreter
that allows you to edit text, among many
other things
● Editors wars
Master on Free Software
7. Emacs concepts, terms and
initial contact
● use the refcard
http://marc-abramowitz.com/download/emacs_22_reference_card.pdf
● meta key (M), control key (C)
● file, buffer, frame and window
● modes: major and minor
● movement commands
● mark and point
Master on Free Software
8. Emacs concepts, terms and
initial contact (II)
● you do not cut, you kill, and you do not
paste, you yank ;-)
● functions and key bindings
● undo
● cancel commands
● search and replace
● configure .emacs
Master on Free Software
9. Emacs concepts, terms and
initial contact (III)
● obtaining help
● macros, powerful and easy to use way to
repeat series of commands
● define macros
● use last macro
● you can name it, save it and bind it to key
Master on Free Software
10. Interesting modes (C-h m)
● Text mode
● C mode
● Compile mode
● GUD mode
● shell modes
● Cscope / ECB
● VC mode
Master on Free Software
11. References
● http://www.gnu.org/software/emacs/
● http://www.emacswiki.org/
● Learning GNU Emacs, Third Edition, by
Debra Cameron (Author), James Elliott
(Author), Marc Loy (Author), Eric
Raymond (Author), Bill Rosenblatt
(Author)
Master on Free Software