[Top][All Lists]

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

line length control setting

From: Adam Hardy
Subject: line length control setting
Date: Thu, 06 Nov 2003 12:24:24 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031025

Hi All,
I am using a brute force method of stopping myself from writing long lines of code, using this in my .emacs:

(defun my-dont-insert-after-fill-column (&rest x)
  (when (> (current-column)
    (delete-char -1)

(add-hook 'after-change-functions 'my-dont-insert-after-fill-column)

But I discovered this is also acting on the command buffer, so I cannot add more than my fill column when doing simple file copies or renames or text search & replaces.

Is there a way that I can adapt my function above to stop it applying to the command buffer?


GNU Emacs 21.3.1 on Linux 2.4.20 RH9

reply via email to

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