From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Sam Halliday <sam.halliday@gmail.com>
Newsgroups: gmane.emacs.help
Subject: custom backspace
Date: Tue, 22 Apr 2014 16:00:46 -0700 (PDT)
Message-ID: <e6fef7a6-fa62-4426-b4fe-5e323637f5e9@googlegroups.com>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1398210041 6667 80.91.229.3 (22 Apr 2014 23:40:41 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 22 Apr 2014 23:40:41 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 01:40:34 2014
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1WckIi-00075o-7d
	for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 01:40:32 +0200
Original-Received: from localhost ([::1]:57880 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1WckIh-0005AE-RZ
	for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2014 19:40:31 -0400
X-Received: by 10.224.68.72 with SMTP id u8mr21941403qai.1.1398207646477;
	Tue, 22 Apr 2014 16:00:46 -0700 (PDT)
X-Received: by 10.140.101.147 with SMTP id u19mr111532qge.10.1398207646417;
	Tue, 22 Apr 2014 16:00:46 -0700 (PDT)
Original-Path: usenet.stanford.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!xmission!news.glorb.com!m5no4231554qaj.1!news-out.google.com!dz10ni19326qab.1!nntp.google.com!cm18no5223441qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Original-Newsgroups: gnu.emacs.help
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com;
	posting-host=109.154.235.237; 
	posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz
Original-NNTP-Posting-Host: 109.154.235.237
User-Agent: G2/1.0
Injection-Date: Tue, 22 Apr 2014 23:00:46 +0000
Original-Xref: usenet.stanford.edu gnu.emacs.help:205047
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:97312
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/97312>

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