[Top][All Lists]

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

Re: Command Menu

From: Kevin Rodgers
Subject: Re: Command Menu
Date: Thu, 02 Oct 2003 10:20:33 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

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))

(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

reply via email to

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