[Pkg-jed-devel] Location of add-on mode files

Rafael Laboissiere Rafael Laboissiere <rafael@debian.org>
Fri, 15 Apr 2005 14:36:14 +0200


* Colin Watson <cjwatson@debian.org> [2005-04-12 13:25]:

> Where is the correct place for a package (namely halibut) to install
> add-on files defining syntax highlighting rules and buffer hooks? I've
> attached the file in question. /usr/share/jed/site-lib/ intuitively
> looks right, but I don't use JED so I'm not competent to judge, and
> other than jed-sl and jed-extra there doesn't seem to be a clear
> precedent in the archive for me to follow ...

Yes, /usr/share/jed/site-lib is the right place to put it.  You might
consider doing two things in your package:

1) Byte-compiling the halibut.sl file by using :
 
   jed -batch -f 'byte_compile_file ("halibut.sl", 0)'
   
   and installing both halibut.sl and halibut.slc in site-lib.
   
2) Being nice with users and adding an initialization file
   (/etc/jed-init.d/50halibut.sl, or whatever) containing:
   
       add_mode_for_extension ("halibut", "but");
       autoload ("halibut_mode", "halibut");

   such that halibut_mode will be automatically started when loading *.but
   files in JED.
 
-- 
Rafael