unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5532: 23.1.92; have text-mode-hook, need "program-mode-hook"
@ 2010-02-05 18:40 jidanni
  2010-07-27  3:10 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2010-02-05 18:40 UTC (permalink / raw)
  To: 5532

There is text-mode-hook, so one can call flyspell-mode,
But there is no program-mode-hook, so one can call flyspell-prog-mode.
One instead must call flyspell-prog-mode once in perl-mode-hook, once in
sh-mode-hook, once in ...

See also
(info "(emacs) Text Mode")
(info "(emacs) Program Modes").







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

* bug#5532: 23.1.92; have text-mode-hook, need "program-mode-hook"
  2010-02-05 18:40 bug#5532: 23.1.92; have text-mode-hook, need "program-mode-hook" jidanni
@ 2010-07-27  3:10 ` Tom Tromey
  2010-10-07 10:04   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2010-07-27  3:10 UTC (permalink / raw)
  To: 5532

Most programming modes are derived from `prog-mode'.
So, you can use prog-mode-hook.

There are a few stray modes that are not.
See bug #6732.

Tom





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

* bug#5532: 23.1.92; have text-mode-hook, need "program-mode-hook"
  2010-07-27  3:10 ` Tom Tromey
@ 2010-10-07 10:04   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2010-10-07 10:04 UTC (permalink / raw)
  To: Tom Tromey

> Most programming modes are derived from `prog-mode'.
> So, you can use prog-mode-hook.

Indeed, prog-mode now provides the desired feature.


        Stefan








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

end of thread, other threads:[~2010-10-07 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-05 18:40 bug#5532: 23.1.92; have text-mode-hook, need "program-mode-hook" jidanni
2010-07-27  3:10 ` Tom Tromey
2010-10-07 10:04   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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