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: bar tomas
Subject: Re: How to set wrap line at window edge
Date: Tue, 8 Sep 2009 09:30:12 +0100

Fabulous! That worked. Thanks a million.

On Mon, Sep 7, 2009 at 9:58 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
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]