unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: seberino@spawar.navy.mil (Christian Seberino)
Subject: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!?
Date: 7 Jan 2003 17:56:00 -0800	[thread overview]
Message-ID: <bf23f78f.0301071756.7b219859@posting.google.com> (raw)

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)

*Why*?

I modified c-mode this way...

   (defun cs-c-mode()
      (c-mode)
      (c-set-style "K&R")
      (setq c-basic-offset 3)
      (turn-on-font-lock)
      (local-set-key "\C-d" 'cs-kill-line))

Will that affect this problem?? I tried adding
(turn-on-auto-fill) to this defun  with no success.

Chris

             reply	other threads:[~2003-01-08  1:56 UTC|newest]

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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=bf23f78f.0301071756.7b219859@posting.google.com \
    --to=seberino@spawar.navy.mil \
    /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.
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).