[Top][All Lists]

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

Menu functionality

From: lisa-asket
Subject: Menu functionality
Date: Sat, 10 Jul 2021 07:06:30 +0200 (CEST)

All help questions are personalised, don't you think?

Have done as follows.  In the last one I used `menu-item`.  I am new to this and

only been playing with menus a couple of days. Criticism could do some good.


(define-key-after global-map
  [menu-bar diamer]
  (cons "Diamer" (make-sparse-keymap "Nanga Parbat"))
  'tools )

;; Make menu item, under the menu by the id “[menu-bar diamer]”
(define-key global-map [menu-bar diamer diamer-next-line]
  '("Next Line" . next-line))

(define-key global-map [menu-bar diamer diamer-previous-line]
  '("Previous Line" . previous-line))

(define-key global-map [menu-bar diamer diamer-entry-sweep]
  '("Entry Sweep" . gilgamesh-entry-sweep))

(define-key global-map [menu-bar diamer diamer-hide-entry]
  '("Hide Entry" . hide-entry))

(define-key global-map [menu-bar diamer diamer-show-entry]
  '("Show Entry" . show-entry))

(define-key global-map [menu-bar diamer diamer-hide-body]
  '("Hide Body" . hide-body))

(define-key global-map [menu-bar diamer diamer-pdf]
  '("Faddeev Pdf" . faddeev-pdf))

(define-key global-map [menu-bar diamer diammer-htm]
  '("Faddeev Htm" . faddeev-htm))

(define-key global-map [menu-bar diamer diammer-html]
  '(menu-item "Hide Body" outline-hide-body
          :help "Hide all body lines in buffer"))

From: Jean Louis <>
Subject: Re: Menu functionality
Date: 10/07/2021 06:56:12 Europe/Paris

* <> [2021-07-10 07:39]:
> I have been doing 

> (define-key global-map
>   [menu-bar diamer diamer-hide-body]
>   '("Hide Body" . hide-body))
> Still, perhaps using `menu-item` could makes implementation better.

I understand that rather that you have got difficulties and you would
prefer personalized programming service to make it easier to your own
frame or viewpoint on how it should be. In general anything could be
better, we have no use of hypothetical statements. Best way to show
what is better is to make it, at least to give design proposal.


Take action in Free Software Foundation campaigns:

In support of Richard M. Stallman

reply via email to

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