Emacs and Perl
Although there are many editors out on the market. Sometimes the old standards still have a lot to offer. Will talked about Emacs, one of the old guard of editors from the Unix world.
He talked a bit about Emacs modes which allow customizing some
of the behavior of the editor for a particular task. In particular, he
introduced cperl-mode
, which is the new and improved mode
for writing Perl code.
Some of the keystrokes he introduced include:
C-x
is a commandC-x 3
splits the window verticallyC-x 2
splits the window horizontallyC-x f
opens the prompt for loading a fileC-x o
go to the other bufferC-x b
allows you to select a bufferC-x C-b
gives a buffer listC-x k
kills a bufferC-x 0
kills the frame
The perl-tidy-mode
automatically runs
Perl::Tidy
when a buffer is saved. There's also an
org-mode
that provides an organizer, calendar, list
management, folding support, etc.
The ~/.emacs
file is read at startup and can be used to
configure the program when it begins. One use for this file is to add
a local directory when modes can be loaded from.
Will explained that Esc
is the Meta key. Some
other important keystrokes are:
M-x shell
brings up a shellC-g
clears out mini-buffer belowM-<
move to top of fileM->
move to bottom of file
GNU Screen
Screen is a window manager that multiplexes multiple processes into one physical terminal. It is often used to work with multiple shell instances in one terminal. It's sort of like using the multi-tab mode of modern terminal programs. Particularly useful when operating on a remote machine.
Some useful Screen commands include:
C-a -
Switch to different window or blank windowC-a c
make a new screenC-a A
rename a screenC-a 2
move to the second screenC-a C-a
bounce back and forth between twwo screens--
can split screensC-a d
detachesscreen -R -d -
attaches to whatever's out thereM
monitor the screen to tell you if something has happened or has stopped.