From: Drew Adams <drew.adams@oracle.com>
To: Sam Halliday <sam.halliday@gmail.com>, help-gnu-emacs@gnu.org
Subject: RE: custom backspace
Date: Tue, 22 Apr 2014 18:45:28 -0700 (PDT) [thread overview]
Message-ID: <33157b68-c4f0-4af8-bc36-0be999f00c85@default> (raw)
In-Reply-To: <7215734c-9d3b-423e-b03f-933c3aab390a@googlegroups.com>
> 1. "m-x describe-key" tells me that my "backspace" or DEL is bound to
> (backward-delete-char-untabify ARG &optional KILLP)
>
> with value untabify. But if type lots of spaces (e.g. in the scratch or my
> .emacs) and then press backspace, it only goes back one character at a
> time... not untabbing.
It *is* untabifying. If the char before point is a tab character,
then without untabifying behavior that char is removed. With
untabifying, the tab char is converted to SPC chars and then one of
those SPC chars is removed, instead.
> 2. describe on my control-backspace reveals that this is bound to C-
> backspace. But when I try to create any form of binding for C-backspace in
> my .emacs I get an error that control must be followed by a single
> character... so I don't have a clue how to rebind this.
Use `C-h k', then hit the `C-backspace' key. It tells you something
like this:
<C-backspace> runs the command backward-kill-paragraph...
Now you know how Emacs prints the name of that key sequence: <C-backspace>.
So do this:
(global-set-key (kbd "<C-backspace>") 'your-command)
See the Emacs manual, node `Init Rebinding'.
prev parent reply other threads:[~2014-04-23 1:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 23:00 custom backspace Sam Halliday
2014-04-22 23:15 ` Sam Halliday
2014-04-22 23:27 ` Sam Halliday
2014-04-22 23:51 ` Paul Smith
2014-04-23 1:45 ` Drew Adams [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33157b68-c4f0-4af8-bc36-0be999f00c85@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=sam.halliday@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).