[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Anyone write their own quick/better/easier functions to write & use
From: |
sen_ml |
Subject: |
Re: Anyone write their own quick/better/easier functions to write & use MACROS? |
Date: |
Wed, 12 Dec 2001 11:29:39 +0900 (JST) |
From: Chris Seberino <seberino@spawar.navy.mil>
Subject: Anyone write their own quick/better/easier functions to write & use
MACROS?
Date: Tue, 11 Dec 2001 14:43:06 -0800
> It would be nice to have a combo like C-m that started
> the macro definition/recording phase and then would
> turn OFF recording when done by doing C-m again!!!!
> (Notice the same combo has to have intelligence to know
> if you want to TOGGLE recording on or off.)
It seems like this could be done as follows:
1) Define an interactive function which:
-examines the value of the variable `defining-kbd-macro'
-if its value is nil call `start-kbd-macro'
-otherwise, call `end-kbd-macro'
2) Bind the function defined in 1) to a key sequence of your choice.