define key with return

2007-12-25 3:32:00

I want to map a key to run some program and not have to hit <CR>.
One way to do this is to

alias z 'ps -elf'
xmodmap -e "keycode 23 = z"

So keycode 23 (F7) is mapped to "z" which is an alias to the command I
wish to run. But I still have to press <CR>. I thought there was a way
to add a <CR> to keycode mapping. Anyone remember what it is?
For extra credit, the above works but you lose the ability to type a
"z". Is there a more elegant way to map a command to a key?

TIA

=-=-=-=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=-=-=
David Stern University of Maryland
Institute for Advanced Computer Studies

Comments

Got something to say?

You must be logged in to post a comment.