I've tried adding lines such as
(add-hook 'text-mode-hook 'turn-off-auto-fill)
to my .emacs, and also tried
(setq default-major-mode 'fundamental mode)
Neither work.
A lot of my usage is through a Firefox add-on called It's All Text!,
which links a Web text box to the editor of your choice. I fill in Web
forms a couple of hours a day for work; It's All Text! opens a new
iteration of Emacs in every form, and to have to reset the behavior for
every form would be a time sink.
Note: This appears to be something in the Mandriva package. I've been
using Emacs 21 and 22 on an older Ubuntu, and Emacs 23.1 on Pardus, and
there's no enforced wordwrap on any of them. I've asked this same
question on the Mandriva forum, hoping I can catch the eye of some
package developer. But I'd also like to ask here, and I welcome hints as
to where to look in other configuration files to try to find what is
causing this.
I would try `M-x find-library RET default' and `M-x find-library RET
site-start'.
What does `C-h m' show in the buffer edited via the Firefox add-on?
--
Kevin Rodgers
Denver, Colorado, USA
> (add-hook 'text-mode-hook 'turn-off-auto-fill)
>
> to my .emacs, and also tried
Does manually turning it off with M-x auto-fill-mode fix the problem?
(To verify that `auto-fill-mode' is indeed causing this.)
> (setq default-major-mode 'fundamental mode)
That doesn't change anything, because auto-mode-alist will override the
major-mode based on the .txt extension "It's All Text" uses.
> It's All Text! opens a new iteration of Emacs in every form, and to
> have to reset the behavior for every form would be a time sink.
You can probably use emacsclient to re-use the same instance, if you're
interested. (I use /usr/bin/open on a Mac.)
> Note: This appears to be something in the Mandriva package.
Could you check the value of text-mode-hook with
C-h v text-mode-hook
Also you can try starting Emacs with --no-site-file.
regards,
Nikolaj Schumacher
> I would try `M-x find-library RET default' and `M-x find-library RET
> site-start'.
There is no default library, but the second string brought me to
something called /usr/share/emacs/22.1/lisp/site-start.el. (Someday I'll
understand the Linux directory structure. Maybe.)
I was able to travel to that directory, "sudo emacs site-start.el", and
comment out a line in that file that turned wordwrap on. My text-mode is
now working as expected. Thanks to both you and Nikolaj for a lot of
interesting and useful information.