[Top][All Lists]

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

Re: line length control setting

From: Johan Bockgård
Subject: Re: line length control setting
Date: Fri, 12 Dec 2003 19:58:14 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (usg-unix-v)

Adam Hardy <address@hidden> writes:

> ; put a vertical line in at the fill-column
> (require 'vvb-mode)
> (setq-default vvb-column fill-column
>                vvb-sticky-p nil
>                vvb-permanent-p t)
> (setq-default vvb-right-on-eol-p t)
> (setq-default vvb-mode 1)

The last line is the problem. Delete it.

> 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)


Johan Bockgård

reply via email to

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