[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hungry-delete

From: Sam Steingold
Subject: Re: hungry-delete
Date: Mon, 04 Apr 2011 15:00:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> * Andreas Röhler <address@hidden> [2011-04-04 20:54:45 +0200]:
> Am 04.04.2011 20:20, schrieb Sam Steingold:
>>> * Andreas Röhler<address@hidden>  [2011-04-04 19:19:52 +0200]:
>>> https://bugs.launchpad.net/python-mode/+bug/328853
>>> "I really love the hungry-delete feature of Emacs'
>>> c-mode. It would be great to have hungry-delete for
>>> python-mode as well."
>> DEL (translated from<backspace>) runs the command
>> backward-delete-char-untabify
>> backward-delete-char-untabify-method is a variable defined in `simple.el'.
>> The method for untabifying when deleting backward.
>> Can be `untabify' -- turn a tab to many spaces, then delete one space;
>>         `hungry' -- delete all whitespace, both tabs and spaces;
>>         `all' -- delete all whitespace, including tabs, spaces and newlines;
>>         nil -- just delete one character.
> However don't think customizing DEL does it.
> In most cases you will use DEL as `untabify'.


 '(backward-delete-char-untabify-method 'all))
(define-key global-map [remap delete-backward-char]

Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X
http://www.memritv.org http://thereligionofpeace.com http://honestreporting.com
http://truepeace.org http://openvotingconsortium.org http://dhimmi.com
There are 10 kinds of people: those who count in binary and those who do not.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]