help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set wrap line at window edge


From: Allan Gottlieb
Subject: Re: How to set wrap line at window edge
Date: Mon, 07 Sep 2009 16:58:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

At Mon, 07 Sep 2009 18:05:03 +0200 bar tomas <bartomas@gmail.com> wrote:

> Yes!  It does say 'Fill' on the mode line ('Org Fill' in fact because I'm
> working with the org mode).
> How do I correct this?

Here are three ways (with minor variations).

1.  Right click on the word fill and then uncheck the "auto fill"
    option (only affects this buffer).

2A. Type "M-x auto-fill-mode" (toggles auto-fill for this buffer)

2B. Type "C-u 0 M-x auto-fill-mode" (turns off, not toggle, auto
    fill for this buffer).

3A. Add this to .emacs (untested), repeating the last line
       for each major mode that should not be auto-filled
       (defun ken-no-auto-fill ()
         "Turn off auto filling"
         (auto-fill-mode 0))
       (add-hook 'foo-mode-hook 'ken-no-auto-fill)

3B. If you have only one major mode of interest, the following is shorter
       (add-hook 'foo-mode-hook (lambda () (auto-fill-mode 0)))

allan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]