From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: linebreak after 78characters Date: 28 Aug 2005 21:40:30 -0700 Organization: http://groups.google.com Message-ID: <1125290430.283672.189410@g44g2000cwa.googlegroups.com> References: <1125087002.730760.127180@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1125290570 20004 80.91.229.2 (29 Aug 2005 04:42:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2005 04:42:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 29 06:42:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9bSE-0007E1-JZ for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Aug 2005 06:41:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9bWI-0006XO-Df for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Aug 2005 00:45:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 63.231.131.64 Original-X-Trace: posting.google.com 1125290435 7214 127.0.0.1 (29 Aug 2005 04:40:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 29 Aug 2005 04:40:35 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=63.231.131.64; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:133519 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: , 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:29054 Archived-At: > >> I just wondered where I can set permanently the option, that emacs breaks eac > >> line after 78characters. I can`t find it on the menu. > > > > If you want auto-fill-mode to be on when in a particular mode you > > need to add this to the mode's hook. > > > > (add-hook 'foo-mode-hook 'auto-fill-mode) > > > > If you want it on for every buffer regardless of mode you could try > > putting it on the after-change-major-mode-hook but that won't cover > > fundamental mode. > > > > Personally I use (global-set-key [f12] 'auto-fill-mode) so I can > > toggle it on and off with a single key no matter what mode I'm in. > > I donot know how it is done, but in auctex (latex) mode the following > lines at the end of a file set the column width to 90 columns. > > %%% Local Variables > %%% mode: latex > %%% fill-column: 90 > %%% End: That would be permanent only for the file you've put that in. It seems different people have different views on what the OP is asking. 1) turning auto-fill-mode on 2) setting the column at which wrapping occurs To set the fill-column globally (for all files that don't have Local Variables (described above) or a mode-hook etc. use M-x customize-option fill-column