Using Emacs to Log in to io for Haverford upper-level CS courses
There is a lot to know about using emacs. This page will tell you how
to start emacs, how to copy and paste with the mouse and how to start
up the emacs tutorial.
-
If you have not used emacs before, get an emacs startup file from my
directory with the command "cp ~dwonnaco/.emacs-cs355 ~/.emacs".
-
If emacs is not already running, start it by typing "emacs" in a
terminal window that you've created using
telnet or
eXodus,
or by selecting emacs from the pop-up menus if you're running eXodus.
-
If you want to interrupt a running command in emacs, use control-g.
This is perhaps the most important thing to remember when you're
learning emacs.
Note that, if a command is waiting for input, the emacs cursor must be
in the "minibuffer" (the single line at the bottom where commands get
input) for control-g to work.
For example, if you type control-x control-f, emacs will prompt you
for the name of a file to open. If you type control-g immediately,
you'll cancel the "find-file" command. However, if you click the
mouse in another window in emacs, the emacs cursor will move there,
and control-g will no longer cancel the find-file (you may see the
word "Quit" in the minibuffer, but then the find-file prompt will
return). You'll have to click back in the minibuffer and then type
control-g to cancel the find-file.
-
When emacs is running in X or eXodus, the mouse buttons have the
following functions in most buffers:
-
1st button: select the start of a region of text to be cut or
copied
-
3rd button: select the end of the region to be copied (double-click
cuts the text)
-
middle button: paste the text that was just selected or cut
-
Experiment with the pull-down menus in the emacs window (not on the
Mac menu bar) if you're running emacs within an X or eXodus
session.
-
For an introduction to emacs keystrokes, run the emacs tutorial (on
the "help" menu, or by using control-h followed by "t" if you're not
using X or eXodus).
Return to the page of
This page maintained by
davew@cs.haverford.edu