all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Unknown <unknown@unknown.invalid>
Subject: Re: line wrap problem
Date: Thu, 20 Mar 2003 00:42:38 GMT	[thread overview]
Message-ID: <288ea.88581$a41.26492@news01.bloor.is.net.cable.rogers.com> (raw)
In-Reply-To: fb376a9e.0303180909.12d4daf7@posting.google.com

S. Eng wrote:

> Hi
> 
> I want to line wrap at column 72.
> I have the following lines in my .emacs
> 
> (setq default-major-mode 'text-mode)
> (setq text-mode-hook 'turn-on-auto-fill)

`setq' shouldn't be used for hooks, use add-hook instead (see below).

> (setq current-fill-column 72)

`current-fill-column' is not a lisp variable for me.

Does this work for you?

(setq default-major-mode 'text-mode)
(add-hook 'text-mode-hook
          #'(lambda ()
              (setq fill-column 72)
              (auto-fill-mode 1)))


Again, if you insert text in the middle of the paragraph, you'll have to press 
<M-q> to refill manually
--
Le

      parent reply	other threads:[~2003-03-20  0:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-18 17:09 line wrap problem S. Eng
2003-03-18 17:22 ` Pierre Albarede
2003-03-18 23:14   ` S. Eng
2003-03-19  0:53     ` Unknown
2003-03-19  9:06     ` Erik Simon
2003-03-19  8:55   ` Pierre Albarede
2003-03-19 16:19     ` Colin Marquardt
2003-03-19 23:19       ` Piet van Oostrum
2003-03-20  0:34       ` Unknown
2003-03-19  2:25 ` Edward Dodge
2003-03-19 18:11 ` Eric Pement
2003-03-19 22:49   ` S. Eng
2003-03-20  0:42 ` Unknown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='288ea.88581$a41.26492@news01.bloor.is.net.cable.rogers.com' \
    --to=unknown@unknown.invalid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.