CoCoA Emacs Interface
Instructions for Emacs beginners
Emacs can do a lot for you: if you open a CoCoA file in emacs it will
have coloured syntax, automatic indentation and some other interesting
features... even better than the graphical interface ;-)
These are the main difficulties for Emacs beginners:
No C-x, C-c, C-v for Cut, Copy, Paste
By default, the usual C-v does something else (forward-page), but:
- On the suggested Emacs for MacOSX you can set from the menu
Carbon Emacs Package > Mac-Style Key Bindings
- Starting from CoCoA-4.4 the file
cua.el is included in
the distribution: see the cocoa.emacs file (or _emacs for MSWindows)
- With some installations of Emacs you
may set CUA (C-x/C-c/C-v cut and paste) from the Option menu.
Anyway within Emacs you can Copy
a region just selecting it with the
You can Paste
into the Emacs window using control-y
or just click with the middle mouse
No "dialog windows"
All communication between you and Emacs is done in the
: the line under the mode
at the bottom of
the Emacs window. Make sure it is always visible.
On the suggested Emacs for MacOSX there are Mac-style dialog windows.
Basic commands for Emacs-CoCoA
Meta (Alt, Apple)
ESC followed by
- Open a CoCoA file in Emacs (C-x C-f).
its name does not end with .coc or .cocoa, type
M-x cocoa-mode (it will appear in the bottom line)
- Type and move with arrows or mouse in your cocoa file
- Send lines to the *cocoa* buffer using the
CoCoA menu or typing C-c C-l [el]
Use the [NEW!] CoCoA menu
to investigate other Emacs-CoCoA commands.
Visit the CoCoA and Emacs
page to set it up.
Meaning of the Mode line
-:** emacs.tex (TeX Fill)--L17--All------------------
-:-- emacs.cocoa (CoCoA Abbrev)--L75--42%------------------
| saved / to be saved
TeX Fill CoCoA Abbrev
|TeX mode, Fill mode, CoCoA mode, Abbrev mode
| line number
| relative position
Some useful key bindings
||"space" and "tab" will complete the directory/file name
||Emacs periodically saves your buffer aaaa into the file
#aaaa# so that you may recover changes you did not save
||undo (can be repeated many times)
|M-x help t
||if you want to learn more about Emacs
||interrupts the current command (and beeps!)
||to go to the buffer you want: you may also use the
|C-x 1 [one]
||expand the current buffer to the whole window