unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sam Halliday <sam.halliday@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: custom backspace
Date: Tue, 22 Apr 2014 16:15:38 -0700 (PDT)	[thread overview]
Message-ID: <7215734c-9d3b-423e-b03f-933c3aab390a@googlegroups.com> (raw)
In-Reply-To: <e6fef7a6-fa62-4426-b4fe-5e323637f5e9@googlegroups.com>

On Wednesday, 23 April 2014 00:00:46 UTC+1, Sam Halliday  wrote:
> I'd really like an emacs configuration whereby backspace will go back one layer of indentation if the previous character is an indented whitespace, for all programming language modes.
> 
> 
> Also, I'd really like control-backspace to be contextual so that it will eat up all the whitespace if the previous character is whitespace, or delete a word (which I think is the default) if the previous character is a non-whitespace character.


I should add some information to this to explain why I need some help:

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.

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.

Help greatly appreciated :-)


  reply	other threads:[~2014-04-22 23:15 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 [this message]
2014-04-22 23:27   ` Sam Halliday
2014-04-22 23:51     ` Paul Smith
2014-04-23  1:45   ` Drew Adams

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=7215734c-9d3b-423e-b03f-933c3aab390a@googlegroups.com \
    --to=sam.halliday@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.
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).