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