[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: text-mode tab questions
From: |
mike hardy |
Subject: |
Re: text-mode tab questions |
Date: |
Mon, 09 Sep 2002 22:34:06 GMT |
User-agent: |
Gnus v5.9.0/Emacs 21.0.102 |
Nostradamus foretold that on Mon Sep 09 2002, Kevin Rodgers would write:
> mike hardy wrote:
>
> > I use text-mode where the default binding for tab is indent-relative
> > (according to Info). But I only like indent-relative once (following
> > <cr>) and would like to have tab key thereafter use tab-to-tab-stop to
> > EOL. Can this be done such that all I have to do is hit tab key and 'it'
> > figures out when to go into tab-to-tab-stop mode?
>
> (defadvice indent-relative (around last-command-tab-to-tab-stop activate)
> "If the last command was `indent-relative', run `tab-to-tab-stop' instead."
> (if (eq last-command 'indent-relative) ; this-command
> (call-interactively 'tab-to-tab-stop)
> ad-do-it))
>
Outstanding (don't know ear-to-ear grin emoticon). Thx alot...
Mike
--
------------------------
mhardy_mail@NO_SPAM@yahoo.com
Help Wanted: Psychic. You know where to apply.