[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, 13 Dec 2003 12:06:42 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031103

On 12/12/2003 07:58 PM Johan Bockgård wrote:
How can I load it only for those modes I need it with?

Turn on vvb-mode in the mode's hook.

(defun turn-on-vvb-mode ()
  "Unconditionally turn on Visible Vertical Bar mode."
  (vvb-mode 1))

(add-hook 'java-mode-hook 'turn-on-vvb-mode)

Hi again,
I got it working for most modes I need, but I tried setting it for emacs-lisp-mode:

(add-hook 'emacs-lisp-mode 'turn-on-vvb-mode)

and it doesn't turn on automatically when I open a lisp file, even though emacs automatically chooses Emacs-Lisp.

Strangely, if I do 'M-x emacs-lisp-mode', then it does work. Is there something special about emacs-lisp-mode?

GNU Emacs 21.3.1 on Linux 2.4.20 Debian

reply via email to

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