[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: line wrap problem
From: |
Le Wang |
Subject: |
Re: line wrap problem |
Date: |
Thu, 20 Mar 2003 00:42:38 GMT |
User-agent: |
KNode/0.7.1 |
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
- Re: line wrap problem, (continued)
Re: line wrap problem, Edward Dodge, 2003/03/18
Re: line wrap problem, Eric Pement, 2003/03/19
Re: line wrap problem,
Le Wang <=