[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
backward-delete-char-untabify-method
From: |
Sam Halliday |
Subject: |
backward-delete-char-untabify-method |
Date: |
Sun, 8 Jun 2003 19:05:40 +0100 |
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
- backward-delete-char-untabify-method,
Sam Halliday <=
- Re: backward-delete-char-untabify-method, Kai Großjohann, 2003/06/08
- Re: backward-delete-char-untabify-method, Stefan Monnier, 2003/06/08
- Re: backward-delete-char-untabify-method, Sam Halliday, 2003/06/08
- Re: backward-delete-char-untabify-method, Sam Halliday, 2003/06/08
- Re: backward-delete-char-untabify-method, Stefan Monnier, 2003/06/08
- Re: backward-delete-char-untabify-method, Sam Halliday, 2003/06/08
- Re: backward-delete-char-untabify-method, Kai Großjohann, 2003/06/09
- Re: backward-delete-char-untabify-method, Sam Halliday, 2003/06/09
- Re: backward-delete-char-untabify-method, Kai Großjohann, 2003/06/09