unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Chris Seberino <cseberino@gmail.com>
To: help-gnu-emacs@gnu.org
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)	[thread overview]
Message-ID: <85b6caa3-a637-401d-8a00-e49868ea8832@googlegroups.com> (raw)
In-Reply-To: <6a969c8d-e606-4143-afd1-83ee32c82aeb@googlegroups.com>

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!


  parent reply	other threads:[~2013-07-07  5:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-06 21:18 Trouble binding Alt *by itself* to the execute-extended-command...(Alt-x and ESC-x work fine.) Chris Seberino
2013-07-06 22:16 ` Pascal J. Bourguignon
2013-07-06 22:21 ` Peter Dyballa
2013-07-07  2:44 ` Bob Proulx
2013-07-07  3:49 ` Yuri Khan
2013-07-07  5:08 ` Chris Seberino [this message]
2013-07-07 12:24   ` Raffaele Ricciardi
2013-07-07 12:51   ` Pascal J. Bourguignon
2013-07-07 20:50     ` Chris Seberino
2013-07-07 22:06       ` Pascal J. Bourguignon
     [not found] ` <mailman.469.1373165078.12400.help-gnu-emacs@gnu.org>
2013-07-07 12:49   ` Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85b6caa3-a637-401d-8a00-e49868ea8832@googlegroups.com \
    --to=cseberino@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).