From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gareth.rees@pobox.com (Gareth Rees) Newsgroups: gmane.emacs.help Subject: Re: line length control setting Date: 7 Nov 2003 10:40:47 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1068231655 30737 80.91.224.253 (7 Nov 2003 19:00:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2003 19:00:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 07 20:00:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AIBqn-0005tJ-00 for ; Fri, 07 Nov 2003 20:00:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AICa5-0000cz-2R for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Nov 2003 14:47:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 193.112.141.206 Original-X-Trace: posting.google.com 1068230447 3583 127.0.0.1 (7 Nov 2003 18:40:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 7 Nov 2003 18:40:47 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:117983 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13916 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13916 Adam Hardy wrote: > I am using a brute force method of stopping myself from writing long > lines of code, using this in my .emacs: It's very drastic to do this using 'after-change-functions'; this stops you from doing useful operations that temporarily create long lines that you then propose to reformat (such as query-replace, delete-indentation, or indent-region). I suggest you use 'local-write-file-hooks' instead, perhaps using Line Limit Mode, as described in this post to comp.emacs: http://groups.google.com/groups?selm=uhfdaw35e.fsf%40pobox.com -- Gareth Rees http://www.garethrees.org/