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