help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making Backspace Work Like VI


From: Kevin Rodgers
Subject: Re: Making Backspace Work Like VI
Date: Sun, 06 Dec 2009 07:46:28 -0700
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

deech wrote:
On Dec 5, 2:04 am, Kevin Rodgers <address@hidden> wrote:
Giorgos Keramidas wrote:
On Fri, 4 Dec 2009 11:13:09 -0800 (PST), deech <address@hidden> wrote:
Ok, I found overwrite-mode which replaces text instead of inserting.
But how do I make backspace move left instead of deleting?
You could install a new local keymap when overwrite-mode is enabled and
bind backspace to 'backward-char.
Local keymaps are for major modes.  For minor modes like overwrite-mode,
use minor-mode-map-alist.


Could you show me how to use the minor-mode-map-alist? My google
search wasn't particularly revealing.

Untested:

(defvar overwrite-mode-map (make-sparse-keymap))
(define-key overwrite-mode-map "<backspace>" 'backward-char)
(add-to-list 'minor-mode-map-alist  (cons 'overwrite-mode overwrite-mode-map))

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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