From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Command Menu
Date: Thu, 02 Oct 2003 10:20:33 -0600 [thread overview]
Message-ID: <3F7C5051.5010407@yahoo.com> (raw)
In-Reply-To: de3ad953.0310011347.16072ee5@posting.google.com
Artist wrote:
> ie..instead of doing M-x some-command,
> I just hit the menu, with some binded key, and it should have all the
> command that I frequently use.
(defvar my-command-menu
(let ((map (make-sparse-keymap "My Commands")))
(define-key map [foo] '("Foo" . foo-command))
(define-key map [bar] '("Bar" . bar-command))
map))
(global-set-key [menu-bar my-command] (cons "My Commands" my-command-menu))
> There should be method to add and
> delete comamnds and execute command methods.
(global-unset-key [menu-bar my-command foo]) ; add
(global-set-key [menu-bar my-command baz] '("Baz" . baz-command)) ; delete
;; execute command methods?
--
Kevin Rodgers
prev parent reply other threads:[~2003-10-02 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-01 21:47 Command Menu Artist
2003-10-01 22:16 ` John Paul Wallington
2003-10-02 16:20 ` Kevin Rodgers [this message]
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=3F7C5051.5010407@yahoo.com \
--to=ihs_4664@yahoo.com \
/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).