jed-users mailing list

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

[Jed-users-l] How to redefine a function?


Hi,

when inserting a quote in LaTeX-Mode two single backticks are inserted
before or two ticks after a word. As I use csquotes, I want to modify
it, so it inserts "\enquote{" before or "}" after it (without the
quotation marks of course).

To do so, I have changed this part of tex_insert_quote() of texcom.sl:

   if (is_substr("[({\t ", char(c)))
     {
        insert_char ('`');
        if (LAST_CHAR == '"') insert_char ('`');
     }
   else
     {
        insert_char ('\'');
        if (LAST_CHAR == '"') insert_char ('\'');
     }

to that:

   if (is_substr("[({\t ", char(c)))
     {
        insert ("\\enquote{");
     }
   else
     {
        insert_char ('}');
     }
     

Well, it works as I wished for - but how can I make this change
permanent now, without changing the original texcom.sl? I suppose I
have to redefine tex_insert_quote() somewhere in my home-dir but I do
not know how and where.   

Thank you for your help!
Martin
_______________________________________________
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]