unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* backward-delete-char-untabify-method
@ 2003-06-08 18:05 Sam Halliday
  2003-06-08 19:54 ` backward-delete-char-untabify-method Kai Großjohann
  2003-06-08 20:46 ` backward-delete-char-untabify-method Stefan Monnier
  0 siblings, 2 replies; 10+ messages in thread
From: Sam Halliday @ 2003-06-08 18:05 UTC (permalink / raw)


hi there,

the docs mention that the only options available to
`backward-delete-char-untabify-method' are:

`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.

but none of these do _exactly_ what i am after. what i would like is
similar to `hungry', but not the same. if i have some indented text:

line 1
  line 2
    line 3
      A

when the cursor is at `A', if i press BACKSPACE, the cursor will go to
the beginning of the line, but i would prefer it to go to the same
indentation as "line 3", another BACKSPACE bringing me to "line 2" and
requiring a third to bring me to the beginning of the line. i.e. I would
prefer a `delete back one level of indentation' option.

could somebody please tell me if is this possible? and how to set it up
(or where to look)?

my ~/.emacs (for 21.3.x) is at
http://www.ma.hw.ac.uk/~samuel/emacs
but to save the trip, the relevant part is:

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

cheers,
Sam

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-06-09  9:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-08 18:05 backward-delete-char-untabify-method Sam Halliday
2003-06-08 19:54 ` backward-delete-char-untabify-method Kai Großjohann
2003-06-08 20:46 ` backward-delete-char-untabify-method Stefan Monnier
2003-06-08 21:22   ` backward-delete-char-untabify-method Sam Halliday
2003-06-08 21:37     ` backward-delete-char-untabify-method Sam Halliday
2003-06-08 22:24       ` backward-delete-char-untabify-method Stefan Monnier
2003-06-08 23:16         ` backward-delete-char-untabify-method Sam Halliday
2003-06-09  9:34           ` backward-delete-char-untabify-method Kai Großjohann
2003-06-09  9:50             ` backward-delete-char-untabify-method Sam Halliday
2003-06-09  9:35     ` backward-delete-char-untabify-method Kai Großjohann

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).