help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble binding Alt *by itself* to the execute-extended-command...(A


From: Chris Seberino
Subject: Re: Trouble binding Alt *by itself* to the execute-extended-command...(Alt-x and ESC-x work fine.)
Date: Sat, 6 Jul 2013 22:08:07 -0700 (PDT)
User-agent: G2/1.0

Thank you all for your help. I finally got it.
In Ubuntu 12.04.2 LTS with Emacs 23.3.1 I did the following:

1. Remap Alt keys to the menu key...

xmodmap -e "keycode 64 = Menu"
xmodmap -e "keycode 108 = Menu"

2. Store that permanently...

xmodmap -pke > ~/.Xmodmap
echo "xmodmap .Xmodmap in" > ~/.xinitrc

...

That should work since the menu key runs execute-extended-command already.

I personally wanted to add some stuff before and after running
execute-extended-command so I added this to my .emacs ...

(global-set-key (kbd "<menu>") (lambda () (interactive)
                               
                                ....extra commands here...

                                (execute-extended-command t)
                                
                                ....extra commands here...))


It seems there is almost nothing Emacs can't do!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]