jed-users mailing list

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

Fwd: flyspell does work with JLM (Jörg's LaTeX mode)


On Nov 25, 2007 5:58 PM, Paul Boekholt <p.boekholt@xxxxxxxxx> wrote:
> 2007/11/25, Itai Arad <itaitay@xxxxxxxxx>:
> > I tried it. After the second time flyspell is activated. But then, the
> > syntax higlhighting of the LaTeX mode is disabled...
> > It seems I cannot have both syntax highlighting working together. This
> > is strange because I use the following lines to call flyspell:
> >
> >
> >     custom_variable("flyspell_syntax_table", "LaTeX");
> >     define_blocal_var("flyspell_syntax_table", "LaTeX");
> >     flyspell_mode;
> >
> > like I read somewhere - this, as I understand, should make it possible
> > for the two syntax highlighting to work together...
>
> The reason your latex syntax highlighting disappeared, is probably because
> the after_latex_load_hook() was called from some other buffer, so
> flyspell uses its own syntax table. As Joerg has said, you should use
> a latex_mode_hook. Try something like
> define latex_mode_hook()
> {
>      define_blocal_var("flyspell_syntax_table", "LaTeX");
>      flyspell_mode;
> }
>
> If that doesn't work, add
> use_dfa_syntax(0);
>

Thanks Paul!

I moved everything from after_latex_load_hook()  to latex_mode_hook()
- but that didn't change anything.

Then I added use_dfa_syntax(0); just after the flyspell_mode; command
- and voila - IT WORKS!! - well not completely... The highlighting now
is a bit different than what it used to be. For example,
\begin{something} command is not uniformly colored - only the \begin
clause.  Still I'd rather have this syntax highlighting with flyspell
than a slightly better one without flyspell.

So to summarize, flyspell cannot work with DFA - right?

Thanks,
Itai.

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


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