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

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

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


From: Christian Seberino
Subject: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!?
Date: 7 Jan 2003 17:56:00 -0800

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 via email to

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