unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Local Variables -- ispell
@ 2006-01-24 17:18 Alberto Manuel Brandão Simões
  2006-01-24 21:36 ` Kevin Rodgers
  0 siblings, 1 reply; 7+ messages in thread
From: Alberto Manuel Brandão Simões @ 2006-01-24 17:18 UTC (permalink / raw)


Hi

I am trying to enable flyspell-mode and change ispell dictionary for 
Portuguese using Local Variables: syntax.

At the moment, I just can do that with eval, which is not nice.

Is not there an easy way to enable flyspell and change its dictionary?

Thanks
Alberto
-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
                  Campus de Gualtar - 4710-057 Braga - Portugal

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Local Variables -- ispell
  2006-01-24 17:18 Local Variables -- ispell Alberto Manuel Brandão Simões
@ 2006-01-24 21:36 ` Kevin Rodgers
  2006-01-25  9:28   ` Alberto Manuel Brandão Simões
       [not found]   ` <mailman.59.1138181325.2878.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Rodgers @ 2006-01-24 21:36 UTC (permalink / raw)


Alberto Manuel Brandão Simões wrote:
 > I am trying to enable flyspell-mode and change ispell dictionary for
 > Portuguese using Local Variables: syntax.
 >
 > At the moment, I just can do that with eval, which is not nice.

Is this what you're doing?

;; -*- eval: (ispell-change-dictionary "portugues"); -*-

 > Is not there an easy way to enable flyspell and change its dictionary?

How about:

;; -*- ispell-local-dictionary: "portugues"; -*-

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Local Variables -- ispell
  2006-01-24 21:36 ` Kevin Rodgers
@ 2006-01-25  9:28   ` Alberto Manuel Brandão Simões
  2006-01-25  9:56     ` François Gannaz
       [not found]   ` <mailman.59.1138181325.2878.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Alberto Manuel Brandão Simões @ 2006-01-25  9:28 UTC (permalink / raw)
  Cc: help-gnu-emacs

Hi, Kevin, Hi all.

Kevin Rodgers wrote:
> Alberto Manuel Brandão Simões wrote:
>  > I am trying to enable flyspell-mode and change ispell dictionary for
>  > Portuguese using Local Variables: syntax.
>  >
>  > At the moment, I just can do that with eval, which is not nice.
> 
> Is this what you're doing?
> 
> ;; -*- eval: (ispell-change-dictionary "portugues"); -*-
Well, I was using eval: (flyspell-mode)
Couldn't find this one :)
> 
>  > Is not there an easy way to enable flyspell and change its dictionary?
> 
> How about:
> 
> ;; -*- ispell-local-dictionary: "portugues"; -*-
Nicer.
But, how to enable flyspell?
I tried 'flyspell-mode: t' but didn't work. I can't change the main mode 
as well (as I'm using AucTeX)...

THanks for any idea ;)
Cheers
Alberto

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
                  Campus de Gualtar - 4710-057 Braga - Portugal

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Local Variables -- ispell
  2006-01-25  9:28   ` Alberto Manuel Brandão Simões
@ 2006-01-25  9:56     ` François Gannaz
  2006-01-25 10:11       ` Alberto Manuel Brandão Simões
  0 siblings, 1 reply; 7+ messages in thread
From: François Gannaz @ 2006-01-25  9:56 UTC (permalink / raw)


Le mer 25 jan 09:28, Alberto Manuel Brandão Simões a écrit :
> >How about:
> >
> >;; -*- ispell-local-dictionary: "portugues"; -*-
> Nicer.
> But, how to enable flyspell?
> I tried 'flyspell-mode: t' but didn't work. I can't change the main mode
> as well (as I'm using AucTeX)...

At the end of the file :
%%% Local Variables: ***
%%% mode:flyspell ***
%%% End: ***

or at the beginning :
%%% -*- mode: flyspell; -*-

--
François Gannaz

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Local Variables -- ispell
  2006-01-25  9:56     ` François Gannaz
@ 2006-01-25 10:11       ` Alberto Manuel Brandão Simões
  0 siblings, 0 replies; 7+ messages in thread
From: Alberto Manuel Brandão Simões @ 2006-01-25 10:11 UTC (permalink / raw)
  Cc: help-gnu-emacs

THanks. That's working.

Kind regards,
Alberto

François Gannaz wrote:
> Le mer 25 jan 09:28, Alberto Manuel Brandão Simões a écrit :
> 
>>>How about:
>>>
>>>;; -*- ispell-local-dictionary: "portugues"; -*-
>>
>>Nicer.
>>But, how to enable flyspell?
>>I tried 'flyspell-mode: t' but didn't work. I can't change the main mode
>>as well (as I'm using AucTeX)...
> 
> 
> At the end of the file :
> %%% Local Variables: ***
> %%% mode:flyspell ***
> %%% End: ***
> 
> or at the beginning :
> %%% -*- mode: flyspell; -*-
> 
> --
> François Gannaz
> 
> 
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
                  Campus de Gualtar - 4710-057 Braga - Portugal

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Local Variables -- ispell
       [not found]   ` <mailman.59.1138181325.2878.help-gnu-emacs@gnu.org>
@ 2006-01-26 16:06     ` Stefan Monnier
  2006-01-26 20:10     ` Stefan Monnier
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2006-01-26 16:06 UTC (permalink / raw)


> But, how to enable flyspell?
> I tried 'flyspell-mode: t' but didn't work. I can't change the main mode as
> well (as I'm using AucTeX)...

Why not

  (add-hook 'LaTeX-mode-hook (lambda () (flyspell-mode 1)))


-- Stefan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Local Variables -- ispell
       [not found]   ` <mailman.59.1138181325.2878.help-gnu-emacs@gnu.org>
  2006-01-26 16:06     ` Stefan Monnier
@ 2006-01-26 20:10     ` Stefan Monnier
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2006-01-26 20:10 UTC (permalink / raw)


>> ;; -*- ispell-local-dictionary: "portugues"; -*-
> But, how to enable flyspell?
> I tried 'flyspell-mode: t' but didn't work. I can't change the main mode as
> well (as I'm using AucTeX)...

File local variables should describe properties of the file.  E.g. that the
file is a LaTeX file or that the text is written in portugese.  But not that
you like to edit it using flyspell: someone else might prefer to edit this
file without flyspell.


        Stefan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-26 20:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-24 17:18 Local Variables -- ispell Alberto Manuel Brandão Simões
2006-01-24 21:36 ` Kevin Rodgers
2006-01-25  9:28   ` Alberto Manuel Brandão Simões
2006-01-25  9:56     ` François Gannaz
2006-01-25 10:11       ` Alberto Manuel Brandão Simões
     [not found]   ` <mailman.59.1138181325.2878.help-gnu-emacs@gnu.org>
2006-01-26 16:06     ` Stefan Monnier
2006-01-26 20:10     ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).