From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawrence mitchell Newsgroups: gmane.emacs.help Subject: Re: any Emacs features to help keep code/comments under 80 columns width? Date: Thu, 28 Nov 2002 23:48:41 +0000 Organization: funfunfun Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038527515 9021 80.91.224.249 (28 Nov 2002 23:51:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Nov 2002 23:51:55 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18HYRk-0002L2-00 for ; Fri, 29 Nov 2002 00:51:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18HYRV-0001l6-00; Thu, 28 Nov 2002 18:51:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!vegetable.demon.co.UK!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: vegetable.demon.co.uk (80.177.16.3) Original-X-Trace: fu-berlin.de 1038527321 25778713 80.177.16.3 (16 [97657]) X-No-Yes: No Mail-Copies-To: nobody User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i386-mingw-nt5.0.2195) Cancel-Lock: sha1:3oX6yv5pgfJHOnhwLis4F8y55iU= Original-Xref: shelby.stanford.edu gnu.emacs.help:107586 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4137 seberino@spawar.navy.mil wrote: > I often write comments and code and look at modeline's Column# display > to verify I did not go beyond the 80th column when I type. > Are there any goodies in Emacs to help me accomplish this??? > Maybe.... > 1. Emacs flashes the screen when I reach column 80 > 2. Emacs automatically adds a hard return and moves me to next line > when I reach column 80. You could use `auto-fill-mode'[1] which automatically wraps text once it reaches a certain column (specified by the variable `fill-column'). Alternately, if you merely want a visual indication of whether you've typed beyond a certain column, take a look at vvb-mode . If you're using it with Emacs (as opposed to XEmacs), you'll have to (require 'lucid) first. [1] Enabled by typing M-x auto-fill-mode RET -- lawrence mitchell