unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs +flyspell
@ 2002-09-17 16:53 Martin Siegumfeldt
  2002-09-17 18:35 ` Michael A. Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Siegumfeldt @ 2002-09-17 16:53 UTC (permalink / raw)


Hi there -

I am trying to make flyspell work together with my emacs. I've inserted:

(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checking" t)
(autoload 'global-flyspell-mode "flyspell" "On-the-fly spelling" t)
;;(global-flyspell-mode t)
(require 'flyspell)
(defun flyspell-danish ()
  (interactive)
 (flyspell-mode t)
  (ispell-change-dictionary "dansk")
  (flyspell-buffer))
(defun flyspell-english ()
  (interactive)
  (flyspell-mode t)
  (ispell-change-dictionary "english")
  (flyspell-buffer))

  (flyspell-buffer)
(autoload 'flyspell-danish "flyspell-danish" t)

in my .emacs. But i would like it to load automatically when I start emacs
(eventually when I open a .TEX file) Does anyone have an idea?

Thanks

Martin

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

* Re: emacs +flyspell
  2002-09-17 16:53 emacs +flyspell Martin Siegumfeldt
@ 2002-09-17 18:35 ` Michael A. Miller
  2002-09-17 19:01   ` Hubert Chan
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michael A. Miller @ 2002-09-17 18:35 UTC (permalink / raw)


>>>>> "Martin" == Martin Siegumfeldt <msie02@kom.auc.dk> writes:

    > But i would like it to load automatically when I start
    > emacs (eventually when I open a .TEX file) Does anyone have
    > an idea?

Here's what I've got in my .emacs.  It turns on flyspell for text
and message modes, and for LaTeX (AUC TeX) modes.

Mike

;; Flyspell
(require 'flyspell)
(add-hook 'test-mode-hook 'flyspell-mode)
(add-hook 'message-mode-hook 'flyspell-mode)

;;; For AUC TeX:
(require 'tex-site)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)

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

* Re: emacs +flyspell
  2002-09-17 18:35 ` Michael A. Miller
@ 2002-09-17 19:01   ` Hubert Chan
  2002-09-17 19:08   ` Stefan Monnier <foo@acm.com>
  2002-09-17 19:47   ` Martin Siegumfeldt
  2 siblings, 0 replies; 8+ messages in thread
From: Hubert Chan @ 2002-09-17 19:01 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

>>>>> "Michael" == Michael A Miller <mmiller3@iupui.edu> writes:

[...]

Michael> ;; Flyspell
Michael> (require 'flyspell)
Michael> (add-hook 'test-mode-hook 'flyspell-mode)
                    ^^^^ -- should be "text", right?
Michael> (add-hook 'message-mode-hook 'flyspell-mode)

message-mode inherits from text-mode, so this last line shouldn't be
needed.  (At least, I don't have that line, and it works for me.)

-- 
Hubert Chan <hubert@uhoreg.ca> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

* Re: emacs +flyspell
  2002-09-17 18:35 ` Michael A. Miller
  2002-09-17 19:01   ` Hubert Chan
@ 2002-09-17 19:08   ` Stefan Monnier <foo@acm.com>
  2002-09-17 19:25     ` Michael A. Miller
  2002-09-17 19:47   ` Martin Siegumfeldt
  2 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-09-17 19:08 UTC (permalink / raw)


>>>>> "Michael" == Michael A Miller <mmiller3@iupui.edu> writes:
> (add-hook 'test-mode-hook 'flyspell-mode)
               ^
            really?


-- Stefan

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

* Re: emacs +flyspell
  2002-09-17 19:08   ` Stefan Monnier <foo@acm.com>
@ 2002-09-17 19:25     ` Michael A. Miller
  0 siblings, 0 replies; 8+ messages in thread
From: Michael A. Miller @ 2002-09-17 19:25 UTC (permalink / raw)


>>>>> ""Stefan" == "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:

>>>>> "Michael" == Michael A Miller <mmiller3@iupui.edu> writes:
    >> (add-hook 'test-mode-hook 'flyspell-mode)
    >                ^ really?

Really!  You can see how seldom I use text mode!  Thanks for
pointing that one out.

Mike

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

* Re: emacs +flyspell
  2002-09-17 18:35 ` Michael A. Miller
  2002-09-17 19:01   ` Hubert Chan
  2002-09-17 19:08   ` Stefan Monnier <foo@acm.com>
@ 2002-09-17 19:47   ` Martin Siegumfeldt
  2002-09-18  5:39     ` Martin Siegumfeldt
  2002-09-19  6:43     ` Colin Marquardt
  2 siblings, 2 replies; 8+ messages in thread
From: Martin Siegumfeldt @ 2002-09-17 19:47 UTC (permalink / raw)


Thanks it works just fine now.... The only thing I need is to change the
language from american into Danish. I've been doing some desperate
experiments but it doesn't seem to work. (I am not really into this .emacs
config :-/)

I appreciate your help

Martin



"Michael A. Miller" <mmiller3@iupui.edu> wrote in message
news:878z20tqfc.fsf@lumen.indyrad.iupui.edu...
> >>>>> "Martin" == Martin Siegumfeldt <msie02@kom.auc.dk> writes:
>
>     > But i would like it to load automatically when I start
>     > emacs (eventually when I open a .TEX file) Does anyone have
>     > an idea?
>
> Here's what I've got in my .emacs.  It turns on flyspell for text
> and message modes, and for LaTeX (AUC TeX) modes.
>
> Mike
>
> ;; Flyspell
> (require 'flyspell)
> (add-hook 'test-mode-hook 'flyspell-mode)
> (add-hook 'message-mode-hook 'flyspell-mode)
>
> ;;; For AUC TeX:
> (require 'tex-site)
> (add-hook 'LaTeX-mode-hook 'flyspell-mode)
>

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

* Re: emacs +flyspell
  2002-09-17 19:47   ` Martin Siegumfeldt
@ 2002-09-18  5:39     ` Martin Siegumfeldt
  2002-09-19  6:43     ` Colin Marquardt
  1 sibling, 0 replies; 8+ messages in thread
From: Martin Siegumfeldt @ 2002-09-18  5:39 UTC (permalink / raw)


Never mind, i just figured it out....


"Martin Siegumfeldt" <msie02@kom.auc.dk> wrote in message
news:am80q7$t2v$1@sunsite.dk...
> Thanks it works just fine now.... The only thing I need is to change the
> language from american into Danish. I've been doing some desperate
> experiments but it doesn't seem to work. (I am not really into this .emacs
> config :-/)
>
> I appreciate your help
>
> Martin
>
>
>
> "Michael A. Miller" <mmiller3@iupui.edu> wrote in message
> news:878z20tqfc.fsf@lumen.indyrad.iupui.edu...
> > >>>>> "Martin" == Martin Siegumfeldt <msie02@kom.auc.dk> writes:
> >
> >     > But i would like it to load automatically when I start
> >     > emacs (eventually when I open a .TEX file) Does anyone have
> >     > an idea?
> >
> > Here's what I've got in my .emacs.  It turns on flyspell for text
> > and message modes, and for LaTeX (AUC TeX) modes.
> >
> > Mike
> >
> > ;; Flyspell
> > (require 'flyspell)
> > (add-hook 'test-mode-hook 'flyspell-mode)
> > (add-hook 'message-mode-hook 'flyspell-mode)
> >
> > ;;; For AUC TeX:
> > (require 'tex-site)
> > (add-hook 'LaTeX-mode-hook 'flyspell-mode)
> >
>
>

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

* Re: emacs +flyspell
  2002-09-17 19:47   ` Martin Siegumfeldt
  2002-09-18  5:39     ` Martin Siegumfeldt
@ 2002-09-19  6:43     ` Colin Marquardt
  1 sibling, 0 replies; 8+ messages in thread
From: Colin Marquardt @ 2002-09-19  6:43 UTC (permalink / raw)


"Martin Siegumfeldt" <msie02@kom.auc.dk> writes:

> Thanks it works just fine now.... The only thing I need is to change the
> language from american into Danish. 

You might also be interested in
  http://www.emacswiki.org/cgi-bin/wiki.pl?AutoLangMode

Cheers,
   Colin

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

end of thread, other threads:[~2002-09-19  6:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-17 16:53 emacs +flyspell Martin Siegumfeldt
2002-09-17 18:35 ` Michael A. Miller
2002-09-17 19:01   ` Hubert Chan
2002-09-17 19:08   ` Stefan Monnier <foo@acm.com>
2002-09-17 19:25     ` Michael A. Miller
2002-09-17 19:47   ` Martin Siegumfeldt
2002-09-18  5:39     ` Martin Siegumfeldt
2002-09-19  6:43     ` Colin Marquardt

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).