From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Hardy Newsgroups: gmane.emacs.help Subject: Re: line length control setting Date: Fri, 12 Dec 2003 12:37:19 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FD9A86F.5090506@cyberspaceroad.com> References: <874qwclk83.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1071229265 21915 80.91.224.253 (12 Dec 2003 11:41:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2003 11:41:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 12:40:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AUlfH-0002V1-00 for ; Fri, 12 Dec 2003 12:40:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUmbw-0008J7-Kf for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2003 07:41:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AUmau-00080N-4a for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 07:40:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AUmaB-0006oo-M6 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 07:40:18 -0500 Original-Received: from [212.227.126.184] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUmaA-0006nR-SQ for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 07:39:47 -0500 Original-Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AUlcg-000554-00 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 12:38:18 +0100 Original-Received: from [217.228.255.204] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AUlcg-0008E1-00 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 12:38:18 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031103 X-Accept-Language: en, en-us, de-de In-Reply-To: X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7be52423742ce504c1b541fa1f258887 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15189 On 12/08/2003 07:14 PM Johan Bockgård wrote: > Adam Hardy 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)). > > http://www.anc.ed.ac.uk/~stephen/emacs/ell.html 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, Adam -- GNU Emacs 21.3.1 on Linux 2.4.20 Debian