|
From: | Kevin Rodgers |
Subject: | Re: text-mode tab questions |
Date: | Tue, 10 Sep 2002 10:18:47 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
mike hardy wrote:
Nostradamus foretold that on Mon Sep 09 2002, Kevin Rodgers would write:(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...
You're welcome. You might want to add a few checks to avoid affecting indent-relative in other contexts: (if (and (interactive-p) (equal last-command-char ?\t) (eq last-command 'indent-relative)) ...) -- Kevin Rodgers <kevinr@ihs.com>
[Prev in Thread] | Current Thread | [Next in Thread] |