On Sat, Jan 12, 2002 at 12:50:32PM +0100, Nick Wilson wrote:
> * On 12-01-02 at 12:47 
> * Benjamin Smith said....
> 
> > On Sat, Jan 12, 2002 at 12:02:22PM +0100, Nick Wilson wrote:
> > > 
> > > Hi everyone.
> > > I've been trying to work out how to do this....
> > > 
> > > Remap the 'G' key to execute a shell command.
> > > 
> > That is indeed possible using a simple macro like this:
> > 
> > macro index 'G' '<shell-command>echo "Hello World!"<Return>' 'Help message'
> > 
> > This is a section in the manual on this if you look for the keyword
> > 'macro'.
> > 
> 
> Thanks, I never saw the <shell-command> bit when I looked. I just did it
> with macro index G "!my_command"<return>

Its good practise to use the function name in brackets, as it means that
even people with weird mapping can use the macro.

-- 
Benjamin Smith <[EMAIL PROTECTED], [EMAIL PROTECTED]>

Attachment: msg22994/pgp00000.pgp
Description: PGP signature

Reply via email to