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: custom backspace
Date: Tue, 22 Apr 2014 16:00:46 -0700 (PDT)	[thread overview]
Message-ID: <e6fef7a6-fa62-4426-b4fe-5e323637f5e9@googlegroups.com> (raw)

Hi all,

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.

Can anybody please help me to get this set up?

Best regards,
Sam


             reply	other threads:[~2014-04-22 23:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22 23:00 Sam Halliday [this message]
2014-04-22 23:15 ` custom backspace Sam Halliday
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=e6fef7a6-fa62-4426-b4fe-5e323637f5e9@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).