home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / jed098-4.zip / JED / INSTALL < prev    next >
Text File  |  1997-02-01  |  2KB  |  48 lines

  1. Before reading this, read the appropriate install file for you system, e.g.,
  2. install.unx.  For MSDOS, WINDOWS, or OS/2, read INSTALL.pc.
  3.  
  4. This file contains hints for customizing JED in such a way that it is easy
  5. to upgrade to later releases.
  6.  
  7. When JED starts up, it reads the file `site.sl' which is located in the lib
  8. directory under JED_ROOT.  This file contains much of the code that defines
  9. the look of the editor.  For instance, it defines how the command line
  10. parameters are to be interpreted and the name of the user's personal
  11. initialization file.
  12.  
  13. One could always edit site.sl and taylor it to the needs of a given system.
  14. However, one would have to do this with every upgrade.  There is a better
  15. way.  
  16.  
  17. Immediately after loading site.sl, the editor will attemp to load a file
  18. called `defaults.sl' from JED_ROOT/lib.  This file is not distributed with
  19. JED.  It is up to the installer to create this file if that is the desire.
  20. An example called `linux.sl' is provided for Linux systems.  Linux
  21. administrators are encouraged to pattern their defaults.sl file after
  22. linux.sl. 
  23.  
  24. What is this file used for?  It is used to modify site.sl.  Since site.sl is
  25. written in S-Lang, any of the functions defined in it can simply be
  26. redefined by creating new ones.  The same is true for the variables that it
  27. defines.  
  28.  
  29. For example, many systems have a directory where info files are kept.  Let's
  30. assume that this directory is `/usr/info'.  Then one should point the
  31. `Info_Directory' variable defined by `site.sl' to this directory:
  32.  
  33. % defaults.sl
  34. Info_Directory = "/usr/info";
  35.  
  36. It is probably a good idea to copy the files in JED_ROOT/info to directory
  37. where the info files are kept and edit the info DIR file appropriately.
  38.  
  39. Another idea is to take advantage of the fact that JED's info reader has the
  40. ability to search along a path list.  Simply edit the /usr/info/DIR file and
  41. add jed to the tree but leave JED's info files in JED_ROOT/info.  Then, use
  42. something like:
  43.  
  44. %defaults.sl
  45. Info_Directory = strcat ("/usr/info,", Info_Directory);
  46.  
  47. Enjoy.
  48.