jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: RE: Ignore_Beep doesn't


On Fri, Mar 29, 2002 at 10:28:26PM +0100, ks wrote:
> On Debian (not pertinent here, but interesting), we have a jed.conf in
> /etc
> > (which gets called by site.sl if there's no defaults.sl) that calls .sl
> > files in /etc/jed-init.d/.  In this way, one can drop "modules" in
> > /etc/jed-init.d/ that get executed by JED at startup, but are persistent
> > over JED upgrades.
> 
> Could you post jed.conf and a short description of these modules?

I've attached the /etc/jed.conf (which John made, coincidentally).  You can
drop almost arbitrary .sl files in /etc/jed-init.d.  I've attached one which
does debian specific customisation as well as a short README describing the
startup scheme.  

Keep in mind that a user's .jedrc (or global jed.rc) can still override any
of these settings.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
% debian jed.conf as suggested by John E. Davis
% Read the documentation in /usr/share/doc/jed-common/README.Debian-startup.
% Please do not change this if you want the documented debian startup system
% to function correctly.

$1 = listdir ("/etc/jed-init.d");
foreach ($1[array_sort($1)])
{
    $1 = ();
    if (path_extname ($1) == ".sl")
	() = evalfile (path_concat ("/etc/jed-init.d", $1));   
}

% File: 00site.sl    -*- SLang -*-
% You can add further slang customisation here to be done by JED at startup.
% Please read /usr/share/doc/jed-common/README.Debian-startup for more 
% information on this mechanism.

% I'm using this file for adding "debian-specific" changes, as I like to keep
% the rest of the JED installation as standard as possible <cpbotha@xxxxxxxxxx>

% I would like to make it known that I think section 10.8 of the Debian Policy
% w.r.t. the "Delete" key is absolute BS, but that's just my opinion.
% Against my will, I have to make this key delete the character under the
% cursor.  <cpbotha@xxxxxxxxxx>
#ifdef XWINDOWS
x_set_keysym (0xFFFF, 0, "\e[3~");
#endif
setkey ("delete_char_cmd", "\e[3~");

% this mode was suggested by JED on the mailing list
autoload("paste_mode", "paste_mode");

% contributed by Guenter Milde
define indent_buffer ()
{  
    push_spot;
    bob;
    do
	indent_line;
    while (down_1);
    pop_spot;
}

% contributed by Guenter Milde, fixed by cpbotha@xxxxxxxxxx
define indent_region_or_line ()
{
    !if(is_visible_mark)
	indent_line;
    else
    {
	check_region (1);                  % make sure the mark comes first
	variable End_Line = what_line;
	exchange_point_and_mark();         % now point is at start of region
	do
	{
	    indent_line;
	}
	while (what_line <= End_Line and down_1);
	pop_spot();                          % return to where we were before  $
	pop_mark_0();
    }
}

JED startup strategy
--------------------

JED has now a new startup setup that will make easier for packages providing
add-on support to get their code automatically loaded in a site-wide manner.
We have the following startup files/directories:

    /etc/jed.conf
    /etc/jed-init.d/
    
Each add-on package has the right to place files into the directory
/etc/jed-init.d/, with names like ??whatever.sl, where "??" is a two-digit
number.  jed.conf is a s-lang script which will be executed by jed at
startup and will then evaluate all scripts in /etc/jed-init.d/.

The order in which the files in /etc/jed-init.d/ will be parsed is
alphabetical following their filenames, i.e. files with name starting with
"00" will be loaded first and with "99" last.

The order of parsing of all JED config files is thus as follows:
   ...
   * /usr/share/jed/lib/site.sl
    - this calls /usr/share/jed/lib/defaults.sl if it exists
    - if defaults.sl does not exist, /etc/jed.conf is called 
      - which in turn calls all .sl scripts in /etc/jed-init.d/
   * If -n is not specified on the command line (as first arg):
    - $HOME/.jedrc (if it exists)
    - /usr/share/jed/lib/jed.rc (only if $HOME/.jedrc doesn't exist)
   command_line_options
   ....

-- Rafael Laboissiere <rafael@xxxxxxxxxx> Thu Oct 21 18:28:39 CEST 1999
-- Updated by Charl P. Botha <cpbotha@xxxxxxxxxx> Sun Jun 3 02:14:58 CEST 2001
-- and again by cpbotha with Rafael's new scheme Tue Nov 13 22:00:49 CET 2001

[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]