From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "roodwriter@core.com" Newsgroups: gmane.emacs.help Subject: Re: how to prevent 'line-wrap'? Date: Fri, 23 Jul 2004 07:31:45 -0400 Organization: roodwriter@core.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <10g1tqke75i0262@corp.supernews.com> References: <87d62n3w34.fsf@herrrossi.mmweg.rwth-aachen.de> Reply-To: roodwriter@core.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1090582653 29044 80.91.224.253 (23 Jul 2004 11:37:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2004 11:37:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 23 13:37:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BnyMZ-0007rP-00 for ; Fri, 23 Jul 2004 13:37:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BnyPR-0008Lw-I6 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Jul 2004 07:40:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!sjc1.usenetserver.com!news.usenetserver.com!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: roodwriter@core.com User-Agent: KNode/0.7.1 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 37 Original-Xref: shelby.stanford.edu gnu.emacs.help:124411 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19748 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19748 Thorsten Bonow wrote: >>>>>> "Chang" == Chang PilHun writes: > > Chang> in vim, I can do this ":set" nowrap.(and recover by ":set > wrap") How Chang> can I do these actions in emacs? > > The function `auto-fill-mode' toggles "word-wrapping" in Emacs. > > To enable it for all text based modes, I have > > ;; ** auto-fill for all text modes > (add-hook 'text-mode-hook 'auto-fill-mode 1) > > in my init file. > > Toto > > -- > Contact information and PGP key at > http://www-users.rwth-aachen.de/thorsten.bonow There's also refill-mode, which is auto-fill but works automatically when editing in the middle of a line. It requires double-spacing between paragraphs, though. Adjacent lines always get slurped up. Like auto-fill, refill is a toggle. I bound both to function keys so I can pop them on and off as I write, depending on which is most useful at that point. --Rod ______________________________ Author of "Linux for Non-Geeks--Clear-eyed Answers for Practical Consumers" and "Boring Stories from Uncle Rod." Both are available at http://rodwriterpublishing.com/index.html. To reply by e-mail remove the extra "o". It's to foil spambots, of course.