References: JED-Reference.htm

File JED-Reference.htm, 3.4 KB (added by admin, 7 years ago)
Line 
1
2<HTML>
3<HEAD>
4<TITLE>JED Editor Quick Reference</TITLE>
5<LINK REV="made" HREF="mailto:help+doc@cs.cmu.edu">
6</HEAD>
7<BODY>
8
9<H1>JED Editor Quick Reference</H1>
10
11<P>JED is a drop-in replacement for the EMACS editor, which has gotten very
12large and slow. The keybindings are almost entirely the same as gnu-emacs.
13It can be found as <TT>/usr/local/bin/jed</TT> on most vendor systems. It is must
14more lightweight and faster than gnu-emacs, and should be used for most
15simple text editing tasks, such as e-mail. It is especially recommended for
16users on the central mail servers as an faster alternative to emacs.
17</P>
18<PRE>
19
20CONTROL                               ESCAPE (META)
21-------                               -------------
22 ^a   Go to start of line             ESC q    Format paragraph
23 ^b   Move backward by characters     ESC s    Center line
24 ^d   Forward delete character        ESC v    Move backword by pages
25 ^e   Go to end of line               ESC w    Copy region to kill buffer
26 ^f   Move forward by characters      ESC x    Execute JED command
27 ^g   Abort out of things             ESC y    Yank and pop
28 ^h   Help                            ESC %    Query search and replace
29                                      ESC <    Move to start of buffer
30    ^ha  Show related functions       ESC >    Move to end of buffer
31    ^hf  Help on function             ESC $    Invoke ispell
32    ^hh  Show basic key bindings
33    ^hk  Show key binding
34    ^hi  Bring up Info Browser        CONTROL-X
35    ^hm  Display Unix man page        ---------
36    ^hw  Show what key is             ^x b     Switch to buffer
37         bound to a command           ^x d     Invoke directory editor
38    ^h?  Show Menus                   ^x f     Set fill column
39                                      ^x i     Insert file
40 ^i (TAB) "Smart" line indent         ^x k     Kill buffer
41 ^k   Kill to end of line             ^x s     Save buffers
42 ^l   Put current line in center      ^x u     Undo
43 ^n   Move forward by lines           ^x ^b    Display buffer list
44 ^o   Open up a blank line            ^x ^c    Exit JED
45 ^p   Move backward by lines          ^x ^f    Find file
46 ^r   Search backwards                ^x ^o    Collapse blank lines to one 
47 ^s   Search forward                  ^x ^a    Save current buffer
48 ^v   Move forward by pages           ^x ^w    Write buffer to file
49 ^w   Kill region           
50 ^x   Command prefix
51 ^y   Yank back from kill buffer
52 ^z   Suspend JED               
53 ^_   Undo                       
54 ^@   Set mark
55</PRE>
56A full listing of keybindings is available in the document
57<TT>/afs/cs.cmu.edu/misc/jed/src/jed/doc/emacs.txt</TT>
58
59
60<H2>Common Questions</H2>
61
62<P>Most jed configuration is done via settings in a file called the
63<TT>.jedrc</TT> --
64if you need one and do not already have one, create a file named ".jedrc" in
65your home directory (i.e. issue the command "<TT>jed ~/.jedrc</TT>" to create the
66new file and edit it).</p>
67
68<OL>
69<LI>Tab doesn't seem to be working...
70<P>
71If TAB is not indenting, try inserting this line into your .jedrc:<BR>
72<TT>    setkey("self_insert_cmd", "^I");</TT>
73</P>
74<LI>I do/don't want autoindenting...
75<P>
76Set autoindenting through the WRAP_INDENTS variable (in your .jedrc):<BR>
77<TT>    WRAP_INDENTS = 0;</TT><BR>
78Set this value to 1 to enable autoindenting.<BR>
79
80To completely disable all auto-indenting, (the above controls code-style
81autoindenting) add this to your .jedrc:<BR>
82<TT>   setkey("newline", "^M");</TT>
83</OL>
84
85</BODY>
86</HTML>