* Word Wrap in GNU Emacs for OS X
@ 2003-02-23 17:22 S. Eng
2003-02-23 17:30 ` Kai Großjohann
0 siblings, 1 reply; 4+ messages in thread
From: S. Eng @ 2003-02-23 17:22 UTC (permalink / raw)
Hi
I downloaded Andrew Choi's emacs and everything runs fine. I am
running the OS X installed on new Powerbooks. I have
(setq text-mode-hook 'turn-on-auto-fill)
(setq fill-column 70)
These are the same lines as on my Linux. But it is not wrapping.
Everything I type is treated as one line.
Do others have this problem? Suggestions would be appreciated.
Thanks in advance.
sng@fscv.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Word Wrap in GNU Emacs for OS X
2003-02-23 17:22 Word Wrap in GNU Emacs for OS X S. Eng
@ 2003-02-23 17:30 ` Kai Großjohann
2003-02-25 0:33 ` S. Eng
0 siblings, 1 reply; 4+ messages in thread
From: Kai Großjohann @ 2003-02-23 17:30 UTC (permalink / raw)
sng@fscv.net (S. Eng) writes:
> I downloaded Andrew Choi's emacs and everything runs fine. I am
> running the OS X installed on new Powerbooks. I have
>
> (setq text-mode-hook 'turn-on-auto-fill)
> (setq fill-column 70)
>
> These are the same lines as on my Linux. But it is not wrapping.
> Everything I type is treated as one line.
I suggest this:
(setq-default fill-column 70)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
And then, you have to be in text mode (or a text-like mode) for this
to have any effect. If you aren't, try M-x text-mode RET.
--
A preposition is not a good thing to end a sentence with.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Word Wrap in GNU Emacs for OS X
2003-02-23 17:30 ` Kai Großjohann
@ 2003-02-25 0:33 ` S. Eng
2003-02-25 6:58 ` Kai Großjohann
0 siblings, 1 reply; 4+ messages in thread
From: S. Eng @ 2003-02-25 0:33 UTC (permalink / raw)
kai.grossjohann@uni-duisburg.de (Kai Großjohann) wrote in message news:<84wujq3nwx.fsf@lucy.is.informatik.uni-duisburg.de>...
> sng@fscv.net (S. Eng) writes:
>
> > I downloaded Andrew Choi's emacs and everything runs fine. I am
> > running the OS X installed on new Powerbooks. I have
> >
> > (setq text-mode-hook 'turn-on-auto-fill)
> > (setq fill-column 70)
> >
> > These are the same lines as on my Linux. But it is not wrapping.
> > Everything I type is treated as one line.
>
> I suggest this:
>
> (setq-default fill-column 70)
> (add-hook 'text-mode-hook 'turn-on-auto-fill)
>
> And then, you have to be in text mode (or a text-like mode) for this
> to have any effect. If you aren't, try M-x text-mode RET.
Thanks.. But actually, my emacs that comes with Red Hat 7.2 also does
not wrap either. I tried what you suggested, and various other
combinations. Emacs ignore s everything about column-fill in my
.emacs.
On the menu bar under help, the 'auto wrap' is not checked. I tried
'clicking' and 'tabbing' but could not get it to take this option. I
also went into 'customize option'. It says saved to .emacs, but when I
look at my .emacs, nothing has changed.
Any other suggestion?
Thanks in advance.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Word Wrap in GNU Emacs for OS X
2003-02-25 0:33 ` S. Eng
@ 2003-02-25 6:58 ` Kai Großjohann
0 siblings, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2003-02-25 6:58 UTC (permalink / raw)
ngse@yahoo.com (S. Eng) writes:
> kai.grossjohann@uni-duisburg.de (Kai Großjohann) wrote in message news:<84wujq3nwx.fsf@lucy.is.informatik.uni-duisburg.de>...
>> sng@fscv.net (S. Eng) writes:
>>
>> > I downloaded Andrew Choi's emacs and everything runs fine. I am
>> > running the OS X installed on new Powerbooks. I have
>> >
>> > (setq text-mode-hook 'turn-on-auto-fill)
>> > (setq fill-column 70)
>> >
>> > These are the same lines as on my Linux. But it is not wrapping.
>> > Everything I type is treated as one line.
>>
>> I suggest this:
>>
>> (setq-default fill-column 70)
>> (add-hook 'text-mode-hook 'turn-on-auto-fill)
>>
>> And then, you have to be in text mode (or a text-like mode) for this
>> to have any effect. If you aren't, try M-x text-mode RET.
>
> Thanks.. But actually, my emacs that comes with Red Hat 7.2 also does
> not wrap either. I tried what you suggested, and various other
> combinations. Emacs ignore s everything about column-fill in my
> .emacs.
> On the menu bar under help, the 'auto wrap' is not checked. I tried
> 'clicking' and 'tabbing' but could not get it to take this option. I
> also went into 'customize option'. It says saved to .emacs, but when I
> look at my .emacs, nothing has changed.
>From your above description, I can't tell whether you did what I
suggested, and if so, what happened.
So, try putting the two lines I gave you in ~/.emacs. Then start
Emacs, perhaps with "emacs --debug-init". This will make any errors
more obvious. Are there errors? If there are, post the backtrace
and you don't need to continue :-)
Now type C-h v fill-column RET. What does Emacs print? Is it using
a default value of 70?
Now open a file, say ~/foo.txt, by typing C-x C-f ~/foo.txt RET.
Does Emacs say "Text" in the modeline? If not, type M-x text-mode
RET. Now it should say "Text" in the modeline. It should also say
"Fill". Now type a long line. Does it wrap?
Usually, at this point people tell me: Yeah, when I do what you
described, it works, but it fails when I do *this*. And then I tell
them where the problem is 8-)
--
A preposition is not a good thing to end a sentence with.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-25 6:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-23 17:22 Word Wrap in GNU Emacs for OS X S. Eng
2003-02-23 17:30 ` Kai Großjohann
2003-02-25 0:33 ` S. Eng
2003-02-25 6:58 ` Kai Großjohann
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.