1JED(1) User Manuals JED(1)
2
3
4
6 Jed - programmers editor
7
9 jed [options] file ...
10
12 Jed - programmers editor
13
14 Features:
15
16 Color syntax highlighting. Emulation of Emacs, EDT, Wordstar, and
17 Brief editors. Extensible in a language resembling C. Completely cus‐
18 tomizable. Editing TeX files with AUC-TeX style editing (BiBTeX sup‐
19 port too). Folding support, and much more...
20
21 For complete documentation, see GNU info files, this manual only pro‐
22 vides brief tutorial.
23
25 -batch
26 run Jed in batch mode. This is a non-interactive mode.
27 -n
28 do not load .jedrc file.
29 -a 'file'
30 load file as user configuration file instead of .jedrc.
31 -g 'n'
32 goto line n in buffer (notice that in order to this option to
33 take effect, if must appear after the file name in the command
34 line, like 'jed file -g 3')
35 -l 'file'
36 load file as S-Lang code.
37 -f 'function'
38 execute S-Lang function named function
39 -s 'string'
40 search forward for string
41 -2
42 split window
43 -i 'file'
44 insert file into current buffer.
45
47 Emulating Other Editors
48
49 JED's ability to create new functions using the S--Lang programming
50 language as well as allowing the user to choose key bindings, makes the
51 emulation of other editors possible. Currently, JED provides reasonable
52 emulation of the Emacs, EDT, and Wordstar editors.
53
54 Emacs Emulation
55
56 Emacs Emulation is provided by the S-Lang code in emacs.sl. The basic
57 functionality of Emacs is emulated; most Emacs users should have no
58 problem with JED. To enable Emacs emulation in JED, make sure that the
59 line:
60
61 () = evalfile ("emacs");
62
63 is in your jed.rc (.jedrc) startup file. JED is distributed with this
64 line already present in the default jed.rc file.
65
66 EDT Emulation
67
68 For EDT emulation, edt.sl must be loaded. This is accomplished by
69 ensuring that the line:
70
71 () = evalfile ("edt");
72
73 is in present in the jed.rc (.jedrc) Startup File.
74
75 Wordstar Emulation
76
77 wordstar.sl contains the S-Lang code for JED's Wordstar emulation.
78 Adding the line
79
80 () = evalfile ("wordstar");
81
82 to your jed.rc (.jedrc) startup file will enable JED's Wordstar emula‐
83 tion.
84
86 Status line and Windows
87
88 JED supports multiple windows. Each window may contain the same buffer
89 or different buffers. A status line is displayed immediately below
90 each window. The status line contains information such as the JED ver‐
91 sion number, the buffer name, mode, etc. Please beware of the follow‐
92 ing indicators:
93
94 **
95 buffer has been modified since last save.
96 %%
97 buffer is read only.
98 m
99 Mark set indicator. This means a region is being defined.
100 d
101 File changed on disk indicator. This indicates that the file
102 associated with the buffer is newer than the buffer itself.
103 s
104 spot pushed indicator.
105 +
106 Undo is enabled for the buffer.
107 [Narrow]
108 Buffer is narrowed to a region of LINES.
109 [Macro]
110 A macro is being defined.
111
112 Mini-Buffer.
113
114 The Mini-Buffer consists of a single line located at the bottom of the
115 screen. Much of the dialog between the user and JED takes place in this
116 buffer. For example, when you search for a string, JED will prompt you
117 for the string in the Mini-Buffer.
118
119 The Mini-Buffer also provides a direct link to the S-Langinterpreter.
120 To access the interpreter, press Ctrl-X Esc and the S-Lang> prompt will
121 appear in the Mini-Buffer. Enter any valid S-Lang expression for eval‐
122 uation by the interpreter.
123
124 It is possible to recall data previously entered into the Mini-Buffer
125 by using the up and down arrow keys. This makes it possible to use and
126 edit previous expressions in a convenient and efficient manner.
127
128 Basic Editing
129
130 Editing with JED is pretty easy - most keys simply insert themselves.
131 Movement around the buffer is usually done using the arrow keys or page
132 up and page down keys. If edt.sl is loaded, the keypads on VTxxx ter‐
133 minals function as well. Here, only the highlights are touched upon
134 (cut/paste operations are not considered `highlights'). In the follow‐
135 ing, any character prefixed by the ^ character denotes a Control char‐
136 acter. On keyboards without an explicit Escape key, Ctrl-[ will most
137 likely generate and Escape character.
138
139 A prefix argument to a command may be generated by first hitting the
140 Esc key, then entering the number followed by pressing the desired key.
141 Normally, the prefix argument is used simply for repetition. For exam‐
142 ple, to move to the right 40 characters, one would press Esc 4 0 fol‐
143 lowed immediately by the right arrow key. This illustrates the use of
144 the repeat argument for repetition. However, the prefix argument may
145 be used in other ways as well. For example, to begin defining a
146 region, one would press the Ctrl-@ key. This sets the mark and begins
147 highlighting. Pressing the Ctrl-@ key with a prefix argument will
148 abort the act of defining the region and to pop the mark.
149
150 The following list of useful keybindings assumes that emacs.sl has been
151 loaded.
152
153 Ctrl-L
154 Redraw screen.
155 Ctrl-_
156 Undo (Control-underscore, also Ctrl-X u').
157 Esc q
158 Reformat paragraph (wrap mode). Used with a prefix argument.
159 will justify the paragraph as well.
160 Esc n
161 narrow paragraph (wrap mode). Used with a prefix argument will
162 justify the paragraph as well.
163 Esc ;
164 Make Language comment (Fortran and C)
165 Esc \
166 Trim whitespace around point
167 Esc !
168 Execute shell command
169 Esc $
170 Ispell word
171 Ctrl-X ?
172 Show line/column information.
173 `
174 quoted_insert --- insert next char as is (backquote key)
175 Esc s
176 Center line.
177 Esc u
178 Upcase word.
179 Esc d
180 Downcase word.
181 Esc c
182 Capitalize word.
183 Esc x
184 Get M-x minibuffer prompt with command completion
185 Ctrl-X Ctrl-B
186 pop up a list of buffers
187 Ctrl-X Ctrl-C
188 exit JED
189 Ctrl-X 0
190 Delete Current Window
191 Ctrl-X 1
192 One Window.
193 Ctrl-X 2
194 Split Window.
195 Ctrl-X o
196 Other window.
197 Ctrl-X b
198 switch to buffer
199 Ctrl-X k
200 kill buffer
201 Ctrl-X s
202 save some buffers
203 Ctrl-X Esc
204 Get "S-Lang>" prompt for interface to the S-Lang interpreter.
205 Esc .
206 Find tag
207 Ctrl-@
208 Set Mark (Begin defining a region). Used with a prefix argument
209 aborts the act of defining the region and pops the Mark.
210
212 /usr/share/jed/lib/*.sl
213 these are the default runtime jed slang files
214 /usr/share/jed/lib/site.sl
215 This is the default startup file.
216 /etc/jed.rc
217 The system wide configuration file.
218 ~/.jedrc
219 Per user configuration file.
220
222 John E. Davis <davis@space.mit.edu>
223 Jed's Author
224
225
226 --- This document was translated to nroff by "Boris D. Beletsky"
227 <borik@isracom.co.il>
228
229
230
231Debian OCT 1996 JED(1)