mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] keyboard macros


Chronological Thread 
  • From: "Corey Sweeney" <address@hidden>
  • To: address@hidden
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] keyboard macros
  • Date: Fri, 29 Sep 2006 11:51:51 -0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BEAJkVWj67DDCyQEi/fP9i0/oJ3asRsVOfk46rvbXOAlPBM07N7/SGLEF6fZ0MJuSA6GYFFgsfSADg42rtOqP/C84FXIV23ZMz5rl5/FJoCHlFwEvlY7g2EyKGLjEIWY1aji33LECYJ2YPKSu4vQA8P3w1YNAqDcWZ38VLA4+cs=

Hmm, I was hoping for something more allong the lines of the emacs record system.  I'll explain:

I have a document in which each line starts with 8 spaces, which I want to get rid of.  After typing "delete 8 times, down arrow, then home", a few times, it gets old.  In emacs, I type:
Control-(  {del}  {del}  {del}  {del}  {del}  {del}  {del}  {del}  {home}  {down arrow}  Control-)

That records it as a keyboard macro that's not bound to a key.  Then I type:
Control-x, Control-e

and that runs the entire sequence again.  I type:
Control-u, 58, Control-x, Control-e

And my entire document is done.  Since i'll never use it again, I decide not to bind the keyboard macro to a key.


I think your saying that i'd have to write a extern command to program a temporary keybinding, then use that.

P.S. was that the right tutorial?  It was on how to draw graphics.


Corey

On 9/29/06, Henri Lesourd < address@hidden> wrote:
Corey Sweeney wrote:

> I didn't see anything about keyboard macros in the manual.  Do we have
> "keyboard macros"?  Like emacs's "Control-x Control-(" macros?
>
> Corey
>
> --
> ((lambda (y) (y y)) (lambda (y) (y y)))

One can set them by means of (kbd-map). Have a look, e.g.
in generic-kbd.scm for a (long) list of examples, and at my
tutorial for simple examples, and how to write TeXmacs plugins
in Scheme (this is mandatory in order to write keyboard shortcuts
which are automatically set when you start TeXmacs) :
<<
http://www.ags.uni-sb.de/~henri/texmacs/aTeXmacsTutorial.pdf
>>




--
((lambda (y) (y y)) (lambda (y) (y y)))


Archive powered by MHonArc 2.6.19.

Top of page