all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@genuity.net>
Subject: Re: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!?
Date: Thu, 09 Jan 2003 22:58:38 GMT	[thread overview]
Message-ID: <y8nT9.39$gr1.4541@paloalto-snr1.gtei.net> (raw)
In-Reply-To: Pine.SOL.4.44.0301091729150.13478-100000@mspacman.gpcc.itd.umich.edu

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.

      reply	other threads:[~2003-01-09 22:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-08  1:56 .emacs can only turn on auto-fill for text-mode *not* c-mode!?!? Christian Seberino
2003-01-09 22:37 ` Jonathon Isaac Swiderski
2003-01-09 22:58   ` Barry Margolin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='y8nT9.39$gr1.4541@paloalto-snr1.gtei.net' \
    --to=barmar@genuity.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.