all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sam Halliday <devnull@example.com>
Subject: Re: hungry-delete in latex mode
Date: Wed, 28 May 2003 22:11:24 +0100	[thread overview]
Message-ID: <20030528221124.416032e8.devnull@example.com> (raw)
In-Reply-To: 5l65nurfti.fsf@rum.cs.yale.edu

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	other threads:[~2003-05-28 21:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 19:31 hungry-delete in latex mode Sam Halliday
2003-05-28 20:12 ` Stefan Monnier
2003-05-28 21:11   ` Sam Halliday [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030528221124.416032e8.devnull@example.com \
    --to=devnull@example.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.