[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: making TAB in text major mode just work
From: |
Ehud Karni |
Subject: |
Re: making TAB in text major mode just work |
Date: |
Mon, 26 Nov 2007 23:23:33 +0200 |
On Mon, 26 Nov 2007 18:20:07 Bastien wrote:
>
> "Ehud Karni" <ehud@unix.mvs.co.il> writes:
>
> > On Thu, 22 Nov 2007 12:35:12 jwithers wrote:
> >>
> >> In text mode, or in fundamental mode for that matter, ...
> >> ... doing a control-q tab isn't really good in my mind.
> >
> > Add this to your .emacs and it will solve your problems for text mode.
> > (define-key text-mode-map "\011" 'forward-to-tab-stop)
>
> Do you mean:
>
> (define-key text-mode-map "\011" 'tab-to-tab-stop)
>
> or is `forward-to-tab-stop' a real function?
>
> Here:
>
> (fboundp 'forward-to-tab-stop)
> => nil
My mistake, `forward-to-tab-stop' is a very real LOCAL function I use.
I suppose for the above request 'tab-to-tab-stop' or `move-to-tab-stop'
will do. Also change the "\011" to "\t" so:
(define-key text-mode-map "\t" 'tab-to-tab-stop)
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry