Difference between revisions of "Emacs"
Line 36: | Line 36: | ||
from there on out, any long lines you type will wrap. If you already have long lines, go to the end of that line and type a space - the whole line should auto-wrap. Re-save the work and spell check it from there. | from there on out, any long lines you type will wrap. If you already have long lines, go to the end of that line and type a space - the whole line should auto-wrap. Re-save the work and spell check it from there. | ||
− | === The editor says my file is locked | + | === The editor says my file is locked === |
+ | If editor says your file is locked by Teer23 (or some other machine) and you can't save, that generally means you either left the file open somewhere or a computer crashed while you were editing. Emacs will automatically "lock" the file when you are editing it to make sure you don't edit it two places at once. The easiest solution is to open the file in emacs, "Save As" a new name, and edit that file instead. Just continue to use the new file. | ||
+ | |||
+ | == Questions == | ||
+ | {{Questions}} | ||
+ | |||
+ | == External Links == | ||
+ | |||
+ | == References == | ||
+ | <references /> | ||
+ | |||
+ | |||
+ | [[Category:EGR 53]] |
Revision as of 22:15, 10 August 2009
Version | GNU Emacs 21.4.1 |
---|---|
Cost | free |
Pundit Updated | 7/18/2008 |
Emacs is a text-editing package, and it is available for free on the public computing systems running Linux.
Contents
Running emacs
To run emacs, simply type
emacs &
at the command prompt. The & will allow emacs to run in the background, keeping the command line available for future commands. You can also type
emacs FILENAME &
where FILENAME is either the name of an existing file or the name of a new file you want to create.
FAQ
How can I check spelling?
You can use the Spell-Check Buffer command in the Spell Checking part of the Tools menu in emacs.
Important: the spell checker in emacs does not like really really long lines of text - it will in fact skip over them. To solve this, you either need to hit return in long lines or set emacs up to do work wrap. The easiest way to do this is, once the file is open, see if the word "Fill" is in the gutter of emacs. If not, you need to turn auto word wrap on in one of the following ways:
- go to the Options menu and select Word Wrap in Text Modes (Auto Fill)
- hit "ESC-x" then type auto-fill-mode in the gutter and hit return
from there on out, any long lines you type will wrap. If you already have long lines, go to the end of that line and type a space - the whole line should auto-wrap. Re-save the work and spell check it from there.
The editor says my file is locked
If editor says your file is locked by Teer23 (or some other machine) and you can't save, that generally means you either left the file open somewhere or a computer crashed while you were editing. Emacs will automatically "lock" the file when you are editing it to make sure you don't edit it two places at once. The easiest solution is to open the file in emacs, "Save As" a new name, and edit that file instead. Just continue to use the new file.
Questions
Post your questions by editing the discussion page of this article. Edit the page, then scroll to the bottom and add a question by putting in the characters *{{Q}}, followed by your question and finally your signature (with four tildes, i.e. ~~~~). Using the {{Q}} will automatically put the page in the category of pages with questions - other editors hoping to help out can then go to that category page to see where the questions are. See the page for Template:Q for details and examples.