Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ub!dsinc!netnews.upenn.edu!eniac.seas.upenn.edu!pravin From: pravin@eniac.seas.upenn.edu Newsgroups: comp.emacs Subject: Re: word-wrap in emacs? Message-ID: <43384@netnews.upenn.edu> Date: 17 May 91 02:13:01 GMT References: <1991May15.141420.25052@forwiss.uni-passau.de> Sender: news@netnews.upenn.edu Reply-To: pravin@eniac.seas.upenn.edu () Organization: is there one? Lines: 23 Nntp-Posting-Host: eniac.seas.upenn.edu In a previous article iws9027@eva.fmi.uni-passau.de (Andreas Holzmann) writes: >It is possible to do an automatical word-wrap in emacs? When I type in >text emacs should look if I've already typed 60 or 70 chars in a line >and then does a newline so no line is longer than 60 or 70 chars. You can do M-x auto-fill for word wrap or put a line in your .emacs file: (setq text-mode-hook '(lambda () (auto-fill-mode 1))) or (setq text-mode-hook 'turn-on-auto-fill) Either of these work. I think the default width is 72 columns.. pravin -- This program posts news to billions of machines throughout the galaxy. Your message will cost the net enough to bankrupt your entire planet, and as a result your species will be sold into slavery. Be sure you know what you are doing.