Jed33
2.3.1Configuring Jed
Individual users may change their default setting by copying JEDROOT/lib/jed.rc to .jedrc
in their home directory:
$ cp /usr/share/jed/lib/jed.rc ~/.jedrc
This file may be edited to change the initial values and behavior of Jed. Lines beginning
with a percent symbol (%) are comments and are ignored when the file is read. Other than condi-
tional statements, all entries must end in a semi-colon (;).
One of the first options that a user may wish to change is the emulation mode of the editor.
By default Jed uses Emacs-like key bindings for entering commands. Some other emulation
modes available are IDE, CUA and even WordStar. To select a new emulation, edit the .jedrc in
the user’s home directory, comment out the current emulation and uncomment the one that you
wish to use.
Below, the user has changed the application to use the IDE mode instead of the default.
These key bindings resemble those used by in Borland’s IDE.
if (BATCH == 0)
{
% () = evalfile("emacs"); % Emacs-like bindings
% () = evalfile("edt"); % EDT emulation
() = evalfile ("ide"); % Borland IDE
% () = evalfile ("brief"); % Brief Keybindings
% () = evalfile("wordstar"); % Wordstar (use ide instead)
% () = evalfile ("cua"); % CUA-like key bindings
…
}
You will also notice that there is a conditional statement in the example above. This is
because Jed may also be run in batch mode for processing files unattended. Statements within
this block will only be processed if the application is run in interactive mode, not when run in
batch mode. While having the statements outside of this block would not effect the application
when run in batch mode, having them separated speeds up the load time of the application when
they are not needed.
There are many other configuration options available in the .jedrc file that control how the
program operates. Some of them are generic to all modes and others are used in only one mode.
For example, the variable
CASE_SEARCH
may be set to force case sensitivity in searches, or
C_BRA_NEWLINE
may be set to force a newline character to be inserted prior to a curly-bracket
when in C-mode.
Jed also has the capability of calling a compiler directly and examining the output. The
standard compiler is assumed to be gcc. If you are using a different compiler, you will need to
set the
Compile_Default_Compiler
variable in the .jedrc file.