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

On 12/08/2003 07:14 PM Johan Bockgård wrote:
Adam Hardy <address@hidden> writes:
 >>Would this really just put in a vertical line at line-length and allow
me to type text past it? If so, it sounds ideal. Is it really vvb.el?
If so do you have a link to it somewhere?

Yes. It's `vvb-mode'. The Emacs Lisp List has it (look for
vvb-mode2.el (ported from XEmacs)).

I successfully set up vvb-mode to load through my .emacs for all modes, but I find it is totally unnecessary in some modes, like dired for instance.

I regularly need it in java-mode, html-helper-mode, css-mode, javascript-generic-mode etc.

I've been looking at the docs and examples and I can't figure out how I can set vvb-mode minor mode only for those modes I want it in. This is what I've currently got:

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

How can I load it only for those modes I need it with?

Thanks in advance,
GNU Emacs 21.3.1 on Linux 2.4.20 Debian

reply via email to

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