all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.