help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!?


From: Jonathon Isaac Swiderski
Subject: Re: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!?
Date: Thu, 9 Jan 2003 17:37:35 -0500

On 7 Jan 2003, Christian Seberino wrote:

> This works great in .emacs for text mode...
>
> (setq default-major-mode 'text-mode)
> (add-hook 'text-mode-hook 'turn-on-auto-fill)
>
>
> However, this does *not* work for c-mode...
>
> (add-hook 'c-mode-hook 'turn-on-auto-fill)

What do you mean, "it does not work"?  Are you getting an error message
(please post it!), or does it simply appear that nothing is happening?

Likely nothing is happening --- if c-mode uses the text-mode hook, then
auto-fill-mode is already on, and emacs is likely finding it rather
difficult to turn on what is already on.


-- 
Jonathon Isaac Swiderski \\ dangercat-20@dangercat.net
cs.oberlin.edu/~jswiders  \\  www.dangercat.net/resume

a cow is of bovine ilk
one end is moo
the other milk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]