help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: hungry-delete in latex mode


From: Sam Halliday
Subject: Re: hungry-delete in latex mode
Date: Wed, 28 May 2003 22:11:24 +0100

Stefan Monnier wrote:
> >>>>> "Sam" == Sam Halliday <devnull@example.com> writes:
> > there seems to be a lot written about this on the web, and in the
> > archives, but i wasnt able to find an answer. basically i would like
> > to be able to get the c-hungry-delete-key working for latex mode
> > (and i might consider all text modes as well). i have tried
> > rebinding keys to issue 'c-electric-backspace, but thats is not
> > going to work since it isnt defined but in c-mode.
> 
> For deletion backward, just rebind your DEL key and set the var:
> 
>   (setq backward-delete-char-untabify-method
>         <check-the-var's-documentation-to-see-what-value-you-want-to-
>         use>)
>   (global-set-key "\C-?" 'backward-delete-char-untabify)

Excellent!

(setq backward-delete-char-untabify-method 'hungry)
  (global-set-key "\C-?" 'backward-delete-char-untabify)

its amazing that emacs documentation can be so big that i missed this
even though i (thought i) read everything on indentation, delete keys
and whitespace.

cheers again,
Sam


reply via email to

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