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

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

Re: F10 → menu


From: Jean-Christophe Helary
Subject: Re: F10 → menu
Date: Sun, 28 May 2017 23:42:01 +0900

> On May 28, 2017, at 23:33, John Ankarström <address@hidden> wrote:
> 
> Thus, to achieve the functionality you want (which seems to be
> opening the menu in the top-left corner of the window?), the
> following function would do it:
> 
> --8<---------------cut here---------------start------------->8---
> (defun menu-bar-open-top-left ()
>  (interactive)
>  (popup-menu (mouse-menu-bar-map) (list '(0 0) (selected-frame))))
> 
> (global-set-key (kbd "<C-f2>") #'menu-bar-open-top-left)
> --8<---------------cut here---------------end--------------->8---
> 
> Hope that works for you.

It definitely does. Thank you very much.
It's already late here, but I think I'll be checking how to use that instead of 
the right-click contextual menu that only displays opened buffers.

Jean-Christophe 

reply via email to

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