From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: automatic new-line after 80 columns Date: Tue, 17 Feb 2009 16:21:10 -0600 Message-ID: <5q2dnbZjSrLIpQbUnZ2dnUVZ_rLinZ2d@sysmatrix.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234910528 10338 80.91.229.12 (17 Feb 2009 22:42:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 22:42:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 23:43:24 2009 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 1LZYew-0006B5-K7 for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 23:43:22 +0100 Original-Received: from localhost ([127.0.0.1]:36642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZYdb-0003Pk-WE for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 17:42:00 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 17 Feb 2009 16:21:08 -0600 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 23 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.132.29 Original-X-Trace: sv3-jiGjTRpJUgnJ/i4hKDDSj2DblLh21Ry8aX7GuqtmWEc8fUXlrv9RbIWDL7ztf+j9QQimunZYrw8b3M/!bvucZQeM7rmSHBTE4drv32ECJ30XP24c65NOd7KV1M1e7XfNkSwN5vMjGCKoxshTAbj+JLkZpADk!biD1izaJWoMrHCs/OwUU5ggNorPzsA== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:166858 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:62166 Archived-At: Rodrigo Canellas wrote: > Hi, > > I really can not find how to set 'emacs' to add a new-line when the line reaches the 80th column. > > In 'ccmode', I set it fot the comments, but I would like to define for C++ code as well. > > Can anyone help me? > > Thanks a lot! > > > How does what you want differ from the behavior you see if you type this in a buffer: C-u 80 C-x f C-u 1 M-x auto-fill-mode ?? I think this is a minor mode that works with most programming languages. Ed