|
Programmazione funzionale - guida emacs |
|
|
|
|
Scritto da Ivan Piffer
|
|
giovedì 01 marzo 2007 |
|
Sono sempre stato molto restio all'uso di emacs (ho sempre usato vi, anche perche' si trova dappertutto... emacs un po' meno).
Devo ammettere che pero' il binomio emacs-OCaml e' ottimo (penso che ci sia una cosa simile anche per il linguaggio R).
Ecco qui i comandi base di emacs (che devo studiarmi!): il C sta per control
Basic Editing
- Starting Emacs
- "emacs file" Opens emacs. "file" is
either the name of the file you want to edit, or the new file you
are creating.
- C-x C-c
- Quits emacs
- C-g
- Sometimes you can get all tripped up with
commands, if you do, use this command to be put back in the text
doc you were working on.
- C-h
- Online help. I suggest you use this. It is
well written so newbies to emacs should seasily understand it.
- C-x C-f
- Opens a file into emacs.
- C-x C-v
- Open another file in place of the current
one.
- C-x C-s
- Save
- C-x C-w
- Save as
- C-x u
- Undo. Multiple undo is supported in emacs.
- C-x i
- Inset a file at where the cursor (referred to
as pointer by most emacs users)
Reading Usenet News with Gnus
note: first open up /etc/nntpserver (as root) with a text
editor, and put in your news server.
- Opening Gnus
- You first open emacs (just type
"emacs"), then type "M-x gnus", then hit return. Give it some
time, it will have to download all your nesgroups. If you see it
"Garbage collecting" just sit back for a minute.
After emacs is done retrieving the newsgroups from your server you will see about 3 newsgroups displayed.
- q
- quits gnu news
- s
- saves the .newsrc file
- A k
- Lists all the newsgroups on the server. You will
see a K in front of them, it stands for "kill", don't worry about
it.
- u
- Subscribe or unsubscribe to currently highlighted
newsgroup.
- SPACE
- Start reading the newsgroup the cursor
(pointer) is on. You move through the newsgroups using the up and
down arrows.
- l (lowercase L)
- Lists newsgroups that you have
subscribed to.
- SPACE
- When you are reading a newsgroup, SPACE moves
down a page at a time.
- DEL
- When you are reading a newsgroup the DEL key
moves back one page at a time.
- a
- Create a news post, use it wisely.
- F
- Post a reply.
- C-C C-C
- Post the article.
- q
- When you are reading a newsgroup, q gets you back
to the your list of newsgroups.
|
|
Ultimo aggiornamento ( lunedì 17 novembre 2008 )
|