From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Earl Newsgroups: gmane.emacs.help Subject: Re: indent ragion Date: Tue, 04 Dec 2007 10:03:54 -0700 Organization: XMission http://www.xmission.com/ Message-ID: <87tzmybddx.fsf@xmission.com> References: <2dd9e739-2a03-4704-81c9-594cf53fcc84@e67g2000hsc.googlegroups.com> <9903d1be-2541-4ba4-a31d-6465a1ceb188@x69g2000hsx.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196839369 25338 80.91.229.12 (5 Dec 2007 07:22:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 07:22:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 05 08:22:59 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Izoav-0005RZ-OC for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 08:22:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Izoaf-0003r9-5B for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 02:22:41 -0500 Original-Lines: 47 Original-NNTP-Posting-Host: jearl.fttp.xmission.com Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!pd7cy1no!shaw.ca!news-out.newsgroups.com!prop4-west.newsfeeds.com!news-in2.spamkiller.net!xmission!nnrp.xmission!not-for-mail Original-Newsgroups: gnu.emacs.help Original-X-Trace: news.xmission.com 1196787837 11316 166.70.233.10 (4 Dec 2007 17:03:57 GMT) Original-X-Complaints-To: abuse@xmission.com Original-NNTP-Posting-Date: Tue, 4 Dec 2007 17:03:57 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX6+voBAQGioqL////9 /f3n5+fHx8cUFBTSngI1AAAB9UlEQVQ4jXWUwW7jIBCGUQtz9158bS3FuUayHwDJmDOyYnJFlvGe aynx63dmCOnG3aBIGL4MzPw/IJbUpvq5X0QQ3GzolY9O2JlGUoAIxrTGGBX0tG21AIcDIw0BaRjA V1FsH3DmoeQI+rThb4HtdgcU0TRd0zQqfmFEUXqHo1Z2CLSkPWCh+aJc5p89uKkpgZqXao3NoM8g vATtM8DN0x77pVQ4ElhhD+xMa5XXVPlTRP+JAe4fIEUCBqo1aAhaC/yBiCM3f+AuDovnGS/q//sx 0VLUVPJFghO+qh350bCcfWiMltpAUMdtuyXZSV0ETds1LcyX5Auq26WsZNtpNGj8TL48tEq9tp7m iz9+BwwMDMo9kHBJYNmB9xyxB/o18OzL+ntzl9Jl2bURJwInKVrrqMDyg2TX7yiKmgVXah1LQlqh dDqLiD6gfiiihtey12OMkYwif/w4RI92jeOAIqpqjWip9McqCDjr4Vg5jekqPDdl6INKh+FsMav1 bEUcqKKbmlmkK/B1KA+YFR+0cozpwPkxVY6nhCstYr4GDz/SRHHIh/oh4h1cM7jsQP0rIt6XWrY0 8WNtzipF5KwQTPyh8nXmP3IdcGT9wxsfNBuo4DWQ7PhUVE7NJ3oyJMyq4qcDRRR+cRqN6rFHPxQ/ Nljgi2fpG2hJAOwln9FOAAAAAElFTkSuQmCC User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:z0yi1WaE8NkjopdumN5b0XZG/bU= Original-Xref: shelby.stanford.edu gnu.emacs.help:154390 X-Mailman-Approved-At: Wed, 05 Dec 2007 02:21:35 -0500 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49832 Archived-At: cgiocoli@gmail.com writes: > Suppose you have a text like this > > Hi all, > I have been used emacs for a long time.... but I want to do something > very special and I think that emacs can do it. > Considering one paragraph how can I indent all the paragraph > automatically to fit a box for example? > > indent in a rectangle is to make this > > Hi all, I have been used emacs for a long time... > but I want to do something very special and > I think th at emacs can do it. Considering one > paragraph how can I indent all the paragraph > automatically to fit a box for example? Oh yeah, you can definitely do that. What you want is to full justify the paragraphs. You can do that by using the set-justification-full command (M-x set-justification-full). You also probably want to take a look at the set-fill-column command. This allows you to tell emacs where to break the lines. This paragraph has the fill-column variable set at 50 (default for me is 70). I set that using C-u 50 M-x set-fill-column. Then I did M-x set-justification-full and I have fully justified paragraphs. As you probably guessed you can also do things like M-x set-justification-center. This paragraph has a fill-column of 30. Or you could right justify, just to be different. There probably are some uses for this sort of thing. When you are all done goofing around you can put things back to normal fairly easily. Jason