From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: RAYHAN MUKTADER Newsgroups: gmane.emacs.help Subject: Re: How to set line wrap Date: Tue, 22 Dec 2009 13:23:45 -0800 (PST) Organization: http://groups.google.com Message-ID: <560ec1e5-5fd8-44a2-9083-b0922d812fa8@n31g2000vbt.googlegroups.com> References: <76d3932e-13dd-40e7-b05a-d14eeac56574@q16g2000vbc.googlegroups.com> <87aaxbp437.wl%anselm.helbig+news2009@googlemail.com> <878wcvoz9u.wl%anselm.helbig+news2009@googlemail.com> <877hsfox85.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261518126 705 80.91.229.12 (22 Dec 2009 21:42:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2009 21:42:06 +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 Dec 22 22:41:59 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 1NNCUQ-0003M0-8Y for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 22:41:58 +0100 Original-Received: from localhost ([127.0.0.1]:56654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNCUQ-0005JA-Dx for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 16:41:58 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!n31g2000vbt.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 69.248.200.48 Original-X-Trace: posting.google.com 1261517025 18359 127.0.0.1 (22 Dec 2009 21:23:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 22 Dec 2009 21:23:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n31g2000vbt.googlegroups.com; posting-host=69.248.200.48; posting-account=OT4QewoAAAC2yYcxiQu3UX05RaZ6OV1r User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:175734 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:70810 Archived-At: On Dec 22, 10:16=A0am, Anselm Helbig wrote: > > > > > > Could some tell me how I can set the line wrap to 80 characters= ? > > > > [...] > > > > Thank you for your reply. > > > > I have already tried C-u 5 C-x f. =A0It did not do anything. > > > > Are you recommending that I put the following in my ~/.emacs? > > > > > (setq-default fill-column 5) > > > > (add-hook 'php-mode-hook 'turn-on-auto-fill) > > > > > I've never tried to personalize Emacs before. =A0So, please correct= me > > > > if I am making a mistake. > > > [...] > > > I just tried it. =A0I don't notice anything different. > > What should I be looking for? =A0Should the color change after five > > characters? > > For php-mode auto-fill seems to only work within comments - in general > it doesn't make much sense to use auto-fill for programming. Start > typing a PHP comment and you'll see what auto-fill-mode does. > > Regards, > > Anselm > > -- > Anselm Helbig -http://mnemonikk.org/ I did not see any change with comments either. O well. I just wanted some sort of warning if I exceed 80 characters in a single line.