unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Can't activate auto-fill-mode for fundamental (default) mode *from .emacs*...
@ 2003-01-29  5:53 Christian Seberino
  2003-01-29 13:48 ` Jesper Harder
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Seberino @ 2003-01-29  5:53 UTC (permalink / raw)


I cannot seem to get .emacs to turn on auto-fill-mode for default/fundamental
mode?... Please help...

This doesn't make emacs default to auto-fill-mode...

   (add-hook 'fundamental-mode-hook 'turn-on-auto-fill)

Neither does this in .emacs help either....


   (turn-on-auto-fill)

Nor this...

   (auto-fill-mode)

For cryin' out loud! Why isn't it going on??

IT WORKS WITHIN EMACS IF I DO "M-x auto-fill-mode"!?!?!

Ahhhh!!!

Chris

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

* Re: Can't activate auto-fill-mode for fundamental (default) mode *from .emacs*...
  2003-01-29  5:53 Can't activate auto-fill-mode for fundamental (default) mode *from .emacs* Christian Seberino
@ 2003-01-29 13:48 ` Jesper Harder
  0 siblings, 0 replies; 2+ messages in thread
From: Jesper Harder @ 2003-01-29 13:48 UTC (permalink / raw)


seberino@spawar.navy.mil (Christian Seberino) writes:

> I cannot seem to get .emacs to turn on auto-fill-mode for
> default/fundamental mode?... Please help...
>
> This doesn't make emacs default to auto-fill-mode...
>
>    (add-hook 'fundamental-mode-hook 'turn-on-auto-fill)

This doesn't work because fundamental mode does not have any hooks:

     The `fundamental-mode' function does _not_ run any hooks; you're
     not supposed to customize it.  (If you want Emacs to behave
     differently in Fundamental mode, change the _global_ state of
     Emacs.)

> Neither does this in .emacs help either....
>
>    (turn-on-auto-fill)

No, I think the point of fundamental mode is that every option and
command has the default non-customized behaviour.  So if you want auto
fill, you should probably use some other mode than fundamental mode --
maybe change the option `default-major-mode' to something else.

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

end of thread, other threads:[~2003-01-29 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-29  5:53 Can't activate auto-fill-mode for fundamental (default) mode *from .emacs* Christian Seberino
2003-01-29 13:48 ` Jesper Harder

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).