unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* auto-fill-mode for WordWrap
@ 2003-01-21  7:55 Peter Wu
  2003-01-21  8:14 ` Kai Großjohann
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Wu @ 2003-01-21  7:55 UTC (permalink / raw)


Hello,

I set my Emacs to automatically wordwrap long sentences. It works great.

However, I don't know how to customize the number of characters from which
the wordwrap functions starts work. For example, I want sentences to be
wordwrapped at character #74.

Does anyone knows how to do this? Thanks.

--
Cheers, Peter

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

* Re: auto-fill-mode for WordWrap
  2003-01-21  7:55 auto-fill-mode for WordWrap Peter Wu
@ 2003-01-21  8:14 ` Kai Großjohann
  2003-01-21  9:01   ` Peter Wu
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Großjohann @ 2003-01-21  8:14 UTC (permalink / raw)


"Peter Wu" <peterwu@hotmail.com> writes:

> However, I don't know how to customize the number of characters from which
> the wordwrap functions starts work. For example, I want sentences to be
> wordwrapped at character #74.

C-h f auto-fill-mode RET shows me this:

/----
| auto-fill-mode is an interactive compiled Lisp function in `simple'.
| (auto-fill-mode &optional ARG)
| 
| Toggle Auto Fill mode.
| With arg, turn Auto Fill mode on if and only if arg is positive.
| In Auto Fill mode, inserting a space at a column beyond `current-fill-column'
| automatically breaks the line at a previous space.
| 
| The value of `normal-auto-fill-function' specifies the function to use
| for `auto-fill-function' when turning Auto Fill mode on.
\----

So it's current-fill-column.

Also see the command C-x f (set-fill-column).
-- 
Ambibibentists unite!

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

* Re: auto-fill-mode for WordWrap
  2003-01-21  8:14 ` Kai Großjohann
@ 2003-01-21  9:01   ` Peter Wu
  2003-01-21  9:16     ` Thomas Gehrlein
  2003-01-21  9:18     ` Kai Großjohann
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Wu @ 2003-01-21  9:01 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

In article <84el769axj.fsf@lucy.is.informatik.uni-duisburg.de>, Kai
Großjohann wrote:

> "Peter Wu" <peterwu@hotmail.com> writes:
>
>> However, I don't know how to customize the number of characters from
>> which the wordwrap functions starts work. For example, I want
>> sentences to be wordwrapped at character #74.
>
> C-h f auto-fill-mode RET shows me this:
>
> /----
>> auto-fill-mode is an interactive compiled Lisp function in `simple'.
>> (auto-fill-mode &optional ARG)
>>
>> Toggle Auto Fill mode.
>> With arg, turn Auto Fill mode on if and only if arg is positive.
>> In Auto Fill mode, inserting a space at a column beyond
>> `current-fill-column' automatically breaks the line at a previous
>> space.
>>
>> The value of `normal-auto-fill-function' specifies the function to use
>> for `auto-fill-function' when turning Auto Fill mode on.
> \----
>
> So it's current-fill-column.
>
> Also see the command C-x f (set-fill-column).

When I do this, I am prompted:

set-fill-column requires an explicit argument

I don't know how to specify one for it. Please help! :(


--
Cheers, Peter

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

* Re: auto-fill-mode for WordWrap
  2003-01-21  9:01   ` Peter Wu
@ 2003-01-21  9:16     ` Thomas Gehrlein
  2003-01-21  9:18     ` Kai Großjohann
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Gehrlein @ 2003-01-21  9:16 UTC (permalink / raw)


"Peter Wu" <peterwu@hotmail.com> writes:

> > Also see the command C-x f (set-fill-column).
> 
> When I do this, I am prompted:
> 
> set-fill-column requires an explicit argument
> 
> I don't know how to specify one for it. Please help! :(

You can provide an argument with the command C-u (universal-argument):

C-u 5 4 C-x f

will set the fill-column to 54.

HTH

Thomas

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

* Re: auto-fill-mode for WordWrap
  2003-01-21  9:01   ` Peter Wu
  2003-01-21  9:16     ` Thomas Gehrlein
@ 2003-01-21  9:18     ` Kai Großjohann
  2003-01-21  9:36       ` Peter Wu
  1 sibling, 1 reply; 6+ messages in thread
From: Kai Großjohann @ 2003-01-21  9:18 UTC (permalink / raw)


"Peter Wu" <peterwu@hotmail.com> writes:

> When I do this, I am prompted:
>
> set-fill-column requires an explicit argument
>
> I don't know how to specify one for it. Please help! :(

C-u 42 C-x f sets it to 42.

(setq default-fill-column 42) in ~/.emacs sets the default.

-- 
Ambibibentists unite!

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

* Re: auto-fill-mode for WordWrap
  2003-01-21  9:18     ` Kai Großjohann
@ 2003-01-21  9:36       ` Peter Wu
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Wu @ 2003-01-21  9:36 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

In article <847kcyamju.fsf@lucy.is.informatik.uni-duisburg.de>, Kai
Großjohann wrote:

> "Peter Wu" <peterwu@hotmail.com> writes:
>
>> When I do this, I am prompted:
>>
>> set-fill-column requires an explicit argument
>>
>> I don't know how to specify one for it. Please help! :(
>
> C-u 42 C-x f sets it to 42.
>
> (setq default-fill-column 42) in ~/.emacs sets the default.

Cool! Thank you, Kai and Thomas! :-)

--
Cheers, Peter

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

end of thread, other threads:[~2003-01-21  9:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-21  7:55 auto-fill-mode for WordWrap Peter Wu
2003-01-21  8:14 ` Kai Großjohann
2003-01-21  9:01   ` Peter Wu
2003-01-21  9:16     ` Thomas Gehrlein
2003-01-21  9:18     ` Kai Großjohann
2003-01-21  9:36       ` Peter Wu

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