# jed-script(1) - man - phpman

[JED(1)](https://www.chedong.com/phpMan.php/man/JED/1/markdown)                                      User Manuals                                      [JED(1)](https://www.chedong.com/phpMan.php/man/JED/1/markdown)



## NAME
       Jed - programmers editor

## SYNOPSIS
### jed --version
### jed-script --version
### xjed --version

       **jed** **[--secure]** **[--batch|--script|--help]** **[options]** _file_ **...**
       **jed-script** **[--secure]** _script_ _file_ **[script** **options]** **...**
       **xjed** **[--secure]** **[X** **options]** **[--batch|--script|--help]** **[options]** _file_ **...**

## DESCRIPTION
### Jed - programmers editor

       Features:

       Color syntax _highlighting._  Emulation of **Emacs,** **EDT,** **Wordstar,** and Brief editors.  Extensible
       in a language resembling C. Completely customizable.  Editing TeX files  with  AUC-TeX  style
       editing (BiBTeX support too).  Folding support, and much more...

       For complete documentation, see GNU info files, this manual only provides brief tutorial.

## OPTIONS
### major options
       _--version_
              prints the version and compiletime variables.
       _--help_
              prints usage information.
       _--secure_
              runs  Jed  in  secure  mode, e.g. you can't run any external commands with _system()_ or
              _run_shell_cmd()._
       _--batch_
              run Jed in batch mode.  This is a non-interactive mode.
       _--script_
              this is a mode like _--batch_ but jed does not eval the startup files. It  behaves  like
              _slsh._   You  must  give the file that should be evaluated as second argument. It's the
              same as calling **jed-script.**

### minor options
       _-n_
              do not load _.jedrc_ file.
       _-a_ _'file'_
              load _file_ as user configuration file instead of .jedrc.
       _-e_
              Set emulation mode. The default in Debian is 'emacs'. Other valid  options  are  'vi',
              'cua', 'ide'.
       _+_ _'n'_
              goto line _n_ in buffer (notice that in order to this option to take effect, if must ap‐
              pear before the file name in the command line, like 'jed +3 file')
       _-g_ _'n'_
              goto line _n_ in buffer (notice that in order to this option to take effect, if must ap‐
              pear after the file name in the command line, like 'jed file -g 3')
       _-l_ _'file'_
              load _file_ as S-Lang code.
       _-f_ _'function'_
              execute S-Lang function named _function_
       _-s_ _'string'_
              search forward for _string_
       _-2_
              split window
       _-i_ _'file'_
              insert _file_ into current buffer.

### X options
       **xjed** accepts the common options like _-display,_ _-name,_ _-fn_ _and_ _-geometry._  Additionally it ac‐
       cepts

       _-facesize_ _SIZE,_ _-fs_ _SIZE_
              if build with XRENDERFONT support, selects the font size _SIZE._  Use it with the option
              _-fn_ to select a scalable font.
       _-foreground_ _COLOR,_ _-fg_ _COLOR_
              sets the foreground color.
       _-background_ _COLOR,_ _-bg_ _COLOR_
              sets the background color.
       _-fgMouse_ _COLOR,_ _-mfg_ _COLOR_
              sets the foreground color of the mouse pointer.
       _-bgMouse_ _COLOR,_ _-mbg_ _COLOR_
              sets the background color of the mouse pointer.
       _-Iconic,_ _-ic_
              start iconified.
       _-title_ _NAME_
              sets the window title to _NAME._

       For more options look at **xterm.c.**

## CONFIGURATION
              _Emulating_ _Other_ _Editors_

       JED's ability to create new functions using the _S-Lang_ programming language as well as allow‐
       ing the user to choose key bindings, makes the emulation  of  other  editors  possible.  Cur‐
       rently, JED provides reasonable emulation of the _Emacs,_ _EDT,_ _and_ _Wordstar_ editors.

              _Emacs_ _Emulation_

       _Emacs_ _Emulation_ is provided by the S-Lang code in _emacs.sl._  The basic functionality of Emacs
       is emulated; most Emacs users should have no problem with JED.  To enable Emacs emulation  in
       JED, make sure that the line:

              _()_ _=_ _evalfile_ _("emacs");_

       is  in  your _jed.rc_ (.jedrc) startup file.  JED is distributed with this line already present
       in the default jed.rc file.

              _EDT_ _Emulation_

       For _EDT_ emulation, _edt.sl_ must be loaded.  This is accomplished by ensuring that the line:

              _()_ _=_ _evalfile_ _("edt");_

       is in present in the jed.rc (.jedrc) Startup File.

              _Wordstar_ _Emulation_

       wordstar.sl contains the S-Lang code for JED's Wordstar emulation. Adding the line

              _()_ _=_ _evalfile_ _("wordstar");_

       to your jed.rc (.jedrc) startup file will enable JED's Wordstar emulation.

## RUN TIME
              _Status_ _line_ _and_ _Windows_

       _JED_ supports multiple windows.  Each window may contain the same buffer or different buffers.
       A  status line is displayed immediately below each window.  The status line contains informa‐
       tion such as the JED version number, the buffer name, _mode,_ etc.  Please beware of  the  fol‐
       lowing indicators:

       _**_
              buffer has been modified since last save.
       _%%_
              buffer is read only.
       _m_
              Mark set indicator.  This means a region is being defined.
       _d_
              File changed on disk indicator.  This indicates that the file associated with the buf‐
              fer is newer than the buffer itself.
       _s_
              spot pushed indicator.
       _+_
              Undo is enabled for the buffer.
       _[Narrow]_
              Buffer is narrowed to a region of LINES.
       _[Macro]_
              A macro is being defined.

              _Mini-Buffer._

       The _Mini-Buffer_ consists of a single line located at the bottom of the screen.  Much  of  the
       dialog between the user and JED takes place in this buffer.  For example, when you search for
       a string, JED will prompt you for the string in the Mini-Buffer.

       The _Mini-Buffer_ also provides a direct link to the S-Lang interpreter.  To access the  inter‐
       preter,  press  _Ctrl-X_  _Esc_ and the _S-Lang>_ prompt will appear in the Mini-Buffer.  Enter any
       valid S-Lang expression for evaluation by the interpreter.

       It is possible to recall data previously entered into the _Mini-Buffer_ by  using  the  up  and
       down arrow keys.  This makes it possible to use and edit previous expressions in a convenient
       and efficient manner.

              _Basic_ _Editing_

       _Editing_ _with_ _JED_ is pretty easy - most keys simply insert themselves.   Movement  around  the
       buffer  is  usually  done  using  the _arrow_ _keys_ _or_ _page_ _up_ _and_ _page_ _down_ _keys._  If _edt.sl_ is
       loaded, the keypads on VTxxx terminals function as  well.   Here,  only  the  highlights  are
       touched  upon  (cut/paste operations are not considered `highlights').  In the following, any
       character prefixed by the _^_ character denotes a Control character. On  keyboards  without  an
       explicit Escape key, _Ctrl-[_ will most likely generate and Escape character.

       A  _prefix_  _argument_ to a command may be generated by first hitting the _Esc_ key, then entering
       the number followed by pressing the desired key.  Normally, the prefix argument is used  sim‐
       ply for repetition.  For example, to move to the right 40 characters, one would press _Esc_ _4_ _0_
       followed immediately by the right arrow key.  This illustrates the use of the repeat argument
       for  repetition.   However, the prefix argument may be used in other ways as well.  For exam‐
       ple, to begin defining a region, one would press the _Ctrl-@_ key.  This sets the mark and  be‐
       gins  highlighting.   Pressing  the  _Ctrl-@_  key with a prefix argument will abort the act of
       defining the region and to pop the mark.

       The following list of useful keybindings assumes that _emacs.sl_ has been loaded.

       _Ctrl-L_
              Redraw screen.
       _Ctrl-__
              Undo  (Control-underscore, also Ctrl-X u').
       _Esc_ _q_
              Reformat paragraph (wrap mode).  Used with a prefix argument. will justify  the  para‐
              graph as well.
       _Esc_ _n_
              narrow  paragraph (wrap mode).  Used with a prefix argument will justify the paragraph
              as well.
       _Esc_ _;_
              Make Language comment (Fortran and C)
       _Esc_ _\_
              Trim whitespace around point
       _Esc_ _!_
              Execute shell command
       _Esc_ _$_
              Ispell word
       _Ctrl-X_ _?_
              Show line/column information.
       _`_
              quoted_insert --- insert next char as is (backquote key)
       _Esc_ _s_
              Center line.
       _Esc_ _u_
              Upcase word.
       _Esc_ _d_
              Downcase word.
       _Esc_ _c_
              Capitalize word.
       _Esc_ _x_
              Get M-x minibuffer prompt with command completion
       _Ctrl-X_ _Ctrl-B_
              pop up a list of buffers
       _Ctrl-X_ _Ctrl-C_
              exit JED
       _Ctrl-X_ _0_
              Delete Current Window
       _Ctrl-X_ _1_
              One Window.
       _Ctrl-X_ _2_
              Split Window.
              _Ctrl-X_ _o_
              Other window.
       _Ctrl-X_ _b_
              switch to buffer
       _Ctrl-X_ _k_
              kill buffer
       _Ctrl-X_ _s_
              save some buffers
       _Ctrl-X_ _Esc_
              Get "S-Lang>" prompt for interface to the S-Lang interpreter.
       _Esc_ _._
              Find tag
       _Ctrl-@_
              Set Mark (Begin defining a region).  Used with a prefix argument  aborts  the  act  of
              defining the region and pops the Mark.

## FILES
       _JED_ROOT/lib/*.sl_
              these  are the default runtime jed slang files (packages like jed-extra can define ad‐
              ditional slang library directories)
       _JED_ROOT/lib/site.sl_
              This is the default startup file.
       _/etc/jed.d/*.sl_
              The system wide configuration files (this is a special Debian feature).
       _~/.jedrc_
              Per user configuration file, or
       _~/.jed/jed.rc_
              per user configuration file if the Jed_Home_Directory _~/.jed/_ exists.

## AUTHOR
       _John_ _E._ _Davis_ _<<jed@jedsoft.org>>_
              Jed's Author

       --- This document was _translated_ to nroff by "Boris D. Beletsky" <<borik@isracom.co.il>>



Debian                                        OCT 1996                                        [JED(1)](https://www.chedong.com/phpMan.php/man/JED/1/markdown)
