- Subject: Re: [Jed-users-l] Defining personal sl-files.
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Thu, 9 May 2013 11:17:43 -0400
Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx> wrote:
> messy. So I put them in $HOME/jed/mylatex.sl. Like that:
>
> define my_tex_insert_quote ()
> {
> ...
> }
>
> more functions ...
>
> define latex_mode_hook ()
> {
> ...
> }
>
> In .jedrc I wrote:
>
> variable Jed_Home_Library = "/home/martinkl/jed";
> set_jed_library_path (Jed_Home_Library + "," + get_jed_library_path ());
>
> add_mode_for_extension ("mylatex", "tex");
The last statement indicates that when foo.tex is loaded, the function
mylatex_mode() is to be called to set the mode. But that is not what
you want. Since all you really care about is for your latex_mode_hook
function to get called when jed invokes latex_mode, you have to tell
jed where that function is located. Simply giving the search path
(via set_jed_library_path) is not enough. Try adding the following to
your .jedrc file:
autoload ("latex_mode_hook", "mylatex");
I hope this helps.
--John
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2013 date index]
[2013 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]