From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael campbell Newsgroups: gmane.emacs.help Subject: viper: viper-modify-major-mode Date: Thu, 10 Mar 2011 12:00:27 +0000 Message-ID: <1299758427.4d78bd5b3efe1@netmail.pipex.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1299797163 18292 80.91.229.12 (10 Mar 2011 22:46:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 22:46:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 23:45:59 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxocI-0004j6-9Z for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2011 23:45:58 +0100 Original-Received: from localhost ([127.0.0.1]:53521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxocH-0003Ae-SZ for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2011 17:45:57 -0500 Original-Received: from [140.186.70.92] (port=38638 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxeXe-00063C-V1 for help-gnu-emacs@gnu.org; Thu, 10 Mar 2011 07:00:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxeXe-0001iS-0t for help-gnu-emacs@gnu.org; Thu, 10 Mar 2011 07:00:30 -0500 Original-Received: from mk-outboundfilter-5-a-3.mail.uk.tiscali.com ([212.74.114.9]:36957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxeXd-0001i0-QA for help-gnu-emacs@gnu.org; Thu, 10 Mar 2011 07:00:29 -0500 Original-X-Trace: 358978316/mk-outboundfilter-5.mail.uk.tiscali.com/PIPEX/$PIPEX-MX-ACCEPTED/pipex-infrastructure/81.178.168.213/None/michael.campbell@dsl.pipex.com X-SBRS: None X-RemoteIP: 81.178.168.213 X-IP-MAIL-FROM: michael.campbell@dsl.pipex.com X-SMTP-AUTH: X-Originating-Country: GB/UNITED KINGDOM X-MUA: Pipex Webmail (IMP3.1) X-IP-BHB: Once X-IP-Webmail: TRUE X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoAGANJLeE1RsqjV/2dsb2JhbACZFc9zhWIEkAE X-IronPort-AV: E=Sophos;i="4.62,295,1297036800"; d="scan'208";a="358978316" X-IP-Direction: IN Original-Received: from netmail.pipex.net (HELO mk-netmail-1.mail.uk.tiscali.com) ([212.74.100.20]) by smtp.pipex.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Mar 2011 12:00:27 +0000 Original-Received: from mk-netmail-1.mail.uk.tiscali.com (localhost.localdomain [127.0.0.1]) by mk-netmail-1.mail.uk.tiscali.com (8.13.8/8.13.8) with ESMTP id p2AC0RsJ001464 for ; Thu, 10 Mar 2011 12:00:27 GMT Original-Received: (from apache@localhost) by mk-netmail-1.mail.uk.tiscali.com (8.13.8/8.13.8/Submit) id p2AC0R5M001463 for help-gnu-emacs@gnu.org; Thu, 10 Mar 2011 12:00:27 GMT Original-Received: from 81.178.168.213 ( [81.178.168.213]) as user auua23@dsl.pipex.com by netmail.pipex.net with HTTP; Thu, 10 Mar 2011 12:00:27 +0000 User-Agent: Pipex Webmail (IMP3.1) X-Originating-IP: 81.178.168.213 X-Pipex-Username: auua23@dsl.pipex.com X-Usage: Pipex Webmail is subject to the standard Pipex terms and conditions of use X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.74.114.9 X-Mailman-Approved-At: Thu, 10 Mar 2011 17:44:42 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79948 Archived-At: I'm trying to customise viper in comint mode. I'd like the j and k keys to behave like control-down and control-up in comint mode in vi-state. I have this (viper-modify-major-mode 'comint-mode 'vi-state my-modifier-map) in my .viper where my-modifier-map has been set up appropriately. It doesn't work. But in emacs-state, it does work. I have this (viper-modify-major-mode 'comint-mode 'emacs-state my-modifier-map) in my .viper and it behaves as expected. Emacs version is "23.2.1" Viper version is "3.14.1 of August 15, 2009" $ uname -a Linux sunspot 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux Any ideas? Michael --