From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: saheel1511 Newsgroups: gmane.emacs.help Subject: [vimpulse] Custom keybinding Date: Mon, 28 May 2012 23:54:52 -0700 (PDT) Message-ID: <33923351.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338308404 15600 80.91.229.3 (29 May 2012 16:20:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 16:20:04 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 29 18:20:03 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SZP9P-0002hr-GD for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2012 18:20:03 +0200 Original-Received: from localhost ([::1]:57271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZP9P-0004rb-20 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2012 12:20:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZGKZ-0002lD-Hq for Help-gnu-emacs@gnu.org; Tue, 29 May 2012 02:55:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZGKU-0003Sl-Kb for Help-gnu-emacs@gnu.org; Tue, 29 May 2012 02:54:59 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:60843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZGKU-0003Sf-FU for Help-gnu-emacs@gnu.org; Tue, 29 May 2012 02:54:54 -0400 Original-Received: from telerig.nabble.com ([192.168.236.162]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SZGKS-0005cp-Jv for Help-gnu-emacs@gnu.org; Mon, 28 May 2012 23:54:52 -0700 X-Nabble-From: saheel.godhane@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-Mailman-Approved-At: Tue, 29 May 2012 12:19:44 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85038 Archived-At: Hello everyone, Although I have been using http://www.emacswiki.org/emacs/Vimpulse Vimpulse for quite some time now, I didn't really customize it to my liking. Today I wanted to change the behavior of C-d in all vi modes. Currently, in normal-mode and visual-mode C-d scrolls down, and in insert-mode C-d does nothing. I want C-d to execute 'delete-char' in all modes. So I tried this: (global-set-key (kbd "C-d") 'delete-char) and (vimpulse-global-set-key 'vi-state' (kbd "C-d") 'delete-char)) Both didn't work. C-d still has the same behavior -- it does not delete a character. Any help/suggestions/pointers on how to set custom keybindings for vimpulse? Thank you, Saheel. -- View this message in context: http://old.nabble.com/-vimpulse--Custom-keybinding-tp33923351p33923351.html Sent from the Emacs - Help mailing list archive at Nabble.com.