From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Making Backspace Work Like VI
Date: Sun, 06 Dec 2009 07:46:28 -0700 [thread overview]
Message-ID: <hfgg46$c8j$1@ger.gmane.org> (raw)
In-Reply-To: <c188cce8-5f91-4c4f-8d85-4243bc343685@19g2000vbq.googlegroups.com>
deech wrote:
> On Dec 5, 2:04 am, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
>> Giorgos Keramidas wrote:
>>> On Fri, 4 Dec 2009 11:13:09 -0800 (PST), deech <aditya.si...@gmail.com> 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
next prev parent reply other threads:[~2009-12-06 14:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-04 19:09 Making Backspace Work Like VI deech
2009-12-04 19:13 ` deech
2009-12-04 20:08 ` Richard Riley
2009-12-04 20:17 ` Giorgos Keramidas
2009-12-05 8:04 ` Kevin Rodgers
[not found] ` <mailman.12258.1260000313.2239.help-gnu-emacs@gnu.org>
2009-12-05 14:16 ` deech
2009-12-06 14:46 ` Kevin Rodgers [this message]
2009-12-08 5:10 ` Kevin Rodgers
[not found] ` <mailman.12204.1259957364.2239.help-gnu-emacs@gnu.org>
2009-12-04 21:37 ` deech
2009-12-05 3:04 ` LanX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hfgg46$c8j$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.