From: "Ehud Karni" <ehud@unix.mvs.co.il>
To: bzg@altern.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: making TAB in text major mode just work
Date: Mon, 26 Nov 2007 23:23:33 +0200 [thread overview]
Message-ID: <200711262123.lAQLNXTp001672@beta.mvs.co.il> (raw)
In-Reply-To: <87zlx027jc.fsf@bzg.ath.cx> (message from Bastien on Mon, 26 Nov 2007 18:20:07 +0000)
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
prev parent reply other threads:[~2007-11-26 21:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-22 20:35 making TAB in text major mode just work jwithers
2007-11-23 2:30 ` Giorgos Keramidas
2007-11-23 11:37 ` Bastien
[not found] ` <mailman.3972.1195817873.18990.help-gnu-emacs@gnu.org>
2007-11-23 16:51 ` Mathias Dahl
2007-11-25 23:26 ` Bastien
2007-11-26 15:53 ` Ehud Karni
2007-11-26 18:20 ` Bastien
2007-11-26 21:23 ` Ehud Karni [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=200711262123.lAQLNXTp001672@beta.mvs.co.il \
--to=ehud@unix.mvs.co.il \
--cc=bzg@altern.org \
--cc=help-gnu-emacs@gnu.org \
/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.