[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: line length control setting

From: Adam Hardy
Subject: Re: line length control setting
Date: Sat, 08 Nov 2003 15:47:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

On 11/07/2003 07:40 PM Gareth Rees wrote:
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:

From what I can tell, it looks like it only alerts me to the over-long lines when I try to save - which would be too late for the way I work - or have I misunderstood it?

GNU Emacs 21.3.1 on Linux 2.4.20 RH9

reply via email to

[Prev in Thread] Current Thread [Next in Thread]