* Enforced wordwrap
@ 2008-08-20 1:09 Eddie
2008-08-20 4:27 ` Kevin Rodgers
2008-08-20 9:48 ` Nikolaj Schumacher
0 siblings, 2 replies; 4+ messages in thread
From: Eddie @ 2008-08-20 1:09 UTC (permalink / raw)
To: help-gnu-emacs
I recently started using Emacs 22.1.1 on Mandriva 2008.1. To my dismay,
I find that this version enforces a hard line break on or before 80
characters in a line.
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Enforced wordwrap
2008-08-20 1:09 Enforced wordwrap Eddie
@ 2008-08-20 4:27 ` Kevin Rodgers
2008-08-20 20:43 ` Eddie
2008-08-20 9:48 ` Nikolaj Schumacher
1 sibling, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2008-08-20 4:27 UTC (permalink / raw)
To: help-gnu-emacs
Eddie wrote:
> I recently started using Emacs 22.1.1 on Mandriva 2008.1. To my dismay,
> I find that this version enforces a hard line break on or before 80
> characters in a line.
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Enforced wordwrap
2008-08-20 1:09 Enforced wordwrap Eddie
2008-08-20 4:27 ` Kevin Rodgers
@ 2008-08-20 9:48 ` Nikolaj Schumacher
1 sibling, 0 replies; 4+ messages in thread
From: Nikolaj Schumacher @ 2008-08-20 9:48 UTC (permalink / raw)
To: Eddie; +Cc: help-gnu-emacs
Eddie <emacslist@flyingturkeys.org> wrote:
> (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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Enforced wordwrap
2008-08-20 4:27 ` Kevin Rodgers
@ 2008-08-20 20:43 ` Eddie
0 siblings, 0 replies; 4+ messages in thread
From: Eddie @ 2008-08-20 20:43 UTC (permalink / raw)
To: help-gnu-emacs
On Tue, 2008-08-19 at 22:27 -0600, Kevin Rodgers wrote:
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-20 20:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 1:09 Enforced wordwrap Eddie
2008-08-20 4:27 ` Kevin Rodgers
2008-08-20 20:43 ` Eddie
2008-08-20 9:48 ` Nikolaj Schumacher
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.