unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* .emacs can only turn on auto-fill for text-mode *not* c-mode!?!?
@ 2003-01-08  1:56 Christian Seberino
  2003-01-09 22:37 ` Jonathon Isaac Swiderski
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Seberino @ 2003-01-08  1:56 UTC (permalink / 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

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

end of thread, other threads:[~2003-01-09 22:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).