From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: How to set line wrap Date: Tue, 22 Dec 2009 22:54:37 +0100 Organization: Informatimago Message-ID: <87skb2r7xe.fsf@hubble.informatimago.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> <560ec1e5-5fd8-44a2-9083-b0922d812fa8@n31g2000vbt.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1261521661 11945 80.91.229.12 (22 Dec 2009 22:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2009 22:41:01 +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 23:40:54 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 1NNDPR-00028d-Km for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 23:40:53 +0100 Original-Received: from localhost ([127.0.0.1]:50615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNDPR-000714-HN for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 17:40:53 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-X-Trace: individual.net sl7cCo+h++E6RpduIuO0lwalrFJJ8yeNfVKTpY+2Bamyvjd449 Cancel-Lock: sha1:MDQ4MjI1Yjc2M2M1NmRlOWU2YTlhMjFmNDljYjM2YWY5ZjJmNmZlZg== sha1:HMVWUHecX4tiZvJFdfDTQSEVEsY= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:175735 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:70812 Archived-At: RAYHAN MUKTADER writes: > On Dec 22, 10:16 am, Anselm Helbig +news2...@googlemail.com> 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.  It 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.  So, please correct me >> > > > if I am making a mistake. >> >> > [...] >> >> > I just tried it.  I don't notice anything different. >> > What should I be looking for?  Should 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. (when (require 'column-marker nil t) (column-marker-1 80)) There are three pre-defined column markers, but you can easily add more if you need them. This displays the characters under the specified column in a specific face. -- __Pascal Bourguignon__ http://www.informatimago.com/ "Klingon function calls do not have "parameters" -- they have "arguments" and they ALWAYS WIN THEM."