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: Sat, 13 Dec 2003 12:06:42 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FDAF2C2.2000403@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 1071313923 25711 80.91.224.253 (13 Dec 2003 11:12:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Dec 2003 11:12:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 13 12:11:55 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 1AV7gh-0002hT-00 for ; Sat, 13 Dec 2003 12:11:55 +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 1AV8cH-0006Sd-0s for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Dec 2003 07:11:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AV8bK-0005eE-V4 for help-gnu-emacs@gnu.org; Sat, 13 Dec 2003 07:10:26 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AV8aY-0004Zl-FZ for help-gnu-emacs@gnu.org; Sat, 13 Dec 2003 07:10:10 -0500 Original-Received: from [212.227.126.185] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AV8a4-0003tP-Hg for help-gnu-emacs@gnu.org; Sat, 13 Dec 2003 07:09:08 -0500 Original-Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AV7ca-0000f9-00 for help-gnu-emacs@gnu.org; Sat, 13 Dec 2003 12:07:40 +0100 Original-Received: from [80.128.23.19] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AV7ca-0001Ou-00 for help-gnu-emacs@gnu.org; Sat, 13 Dec 2003 12:07:40 +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:15220 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15220 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? Adam -- GNU Emacs 21.3.1 on Linux 2.4.20 Debian