[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: |
Barry Margolin |
Subject: |
Re: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!? |
Date: |
Thu, 09 Jan 2003 22:58:38 GMT |
In article
<Pine.SOL.4.44.0301091729150.13478-100000@mspacman.gpcc.itd.umich.edu>,
Jonathon Isaac Swiderski <jonswid@umich.edu> wrote:
>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
Why would c-mode run the text-mode hook?
>auto-fill-mode is already on, and emacs is likely finding it rather
>difficult to turn on what is already on.
But this would accomplish his goal (getting auto-fill turned on in C
buffers), so I doubt that he would have written asking for help.
--
Barry Margolin, barmar@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.