Questions tagged [menus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
2 answers
71 views

How to go up one level in the menu-bar when using the keyboard to access menus

When I go many levels down into the menus in the menu bar, is there a way to go back up just one level? To illustrate: Start Emacs Press F10 to open the menu bar Press Ctrlf to reach the "Edit&...
user avatar
  • 553
0 votes
1 answer
34 views

How can I display the calc menu when `calc-embedded-mode` is enabled?

I find calc-embedded-mode handy for typing math from LaTeX mode. As I use it very little, I would like to have the calc menu in integrated mode. The menu remains in latex mode which is useless. I ...
user avatar
  • 1,785
0 votes
0 answers
30 views

Is it possible to change the menu separator?

Consider the following menu item: Notice that the separator is "--" (between *Messages* and Next Buffer). Is there a way to change the separator? I would like to change it to "======&...
user avatar
  • 553
1 vote
1 answer
64 views

How to remove menu with easymenu?

Easymenu is great for creating menus, but how can you remove a top-level menu that was created with it? Here's an example. A minor mode might create the following menu: (easy-menu-define some-minor-...
user avatar
  • 185
0 votes
0 answers
56 views

How to add a kill-buffer item at the beginning of the Buffers menu-bar menu?

When I want to kill a buffer and I have my hands on the keyboard it's simply C-x k RET but if I have already the right hand on the mouse the k RET part is a bit out of reach for my left hand… ...
user avatar
  • 544
0 votes
1 answer
41 views

Getting a dialogue box of custom scripts

I have a bunch of scripts for managing files/directories that I use on a regular basis. Would it be possible to assign a key binding such that whenever I hit this key binding I get a dialogue box that ...
user avatar
  • 23
1 vote
1 answer
208 views

How can I show a quick menu for the user from Emacs Lisp?

I found EasyMenu and and I tried the example: (easy-menu-define my-menu global-map "My own menu" '("My Stuff" ["One entry" my-function t] ("Sub Menu" ["My subentry" my-obscure-function ...
user avatar
  • 1,068
1 vote
2 answers
201 views

Is there a way (a package?) to "redirect" pop-up menus to the minibuffer, ido, or completion buffer; either generic or flyspell-specific

Sometimes I must use Emacs (in X mode) over a network connection (for example, working on a cloud VM). I am pretty comfortable with the interface responsiveness inside a frame, although X is ...
user avatar
  • 153
3 votes
0 answers
51 views

How to advise code to keep popup menus within frame?

How to advise code that pops up menus (like the ones you get by left-clicking a major-mode indicator in the modeline) to stay within the current Emacs frame? Background: Probably this is a bug within ...
user avatar
  • 4,276
1 vote
1 answer
425 views

right click for menu with choices (to change font size)?

I am using emacs 26.1 under macos. when I right-click with the mouse, emacs seems to want to select the region. alas, I would prefer to see a popup menu where I can select a few choices that I would ...
user avatar
  • 113
1 vote
2 answers
769 views

Command to invoke menu-bar's open-file?

The traditional way of opening a file is via C-x C-f (find-file). I don't know since when this has been the case, but in Emacs 27.0.50 (Linux), using the menu bar's File -> Open File invokes the GTK ...
user avatar
  • 111
2 votes
2 answers
429 views

How to use a menu to jump between sections of a document?

I would like to define my own rules for what a section of a document is, then use this so I can popup a list of sections I can auto-complete or use arrow keys to jump between them. Take a simple ...
user avatar
  • 7,267
1 vote
0 answers
92 views

put menus, defined in packages, as submenu into own menu-bar menu

Introduction: The menu-bar is a nice institution of emacs to remember a command and its shortcut. Using then easy-menu-define for defining own menus is pretty awesome with regard to this purpose. So ...
user avatar
  • 4,276
0 votes
0 answers
233 views

Spacemacs menu in mini-buffer displays Dired+ "C-x D A" command unreliably

Two weeks ago I installed Dired+. I successfully used Dired+ C-x D A (diredp-add-to-dired-buffer) command. But the Dired+ C-x D A command is not always available. Sometimes after C-x, the D appears ...
user avatar
  • 1,333
1 vote
1 answer
107 views

Key assignments in init file issue

I am customizing emacs X11 on a Linux box. By default, C-x C-s is bound to save-buffer, and C-x C-s shows as the keyboard shortcut in the File->Save menu. If I put into my .emacs file the following ...
user avatar
0 votes
0 answers
76 views

Duplicate menu items in spacemacs

As you can see in the screen shot below: Subdir appears twice under Subdir. All the submenu items are identical It also happens to Operate, Mark, Regexp and Immediate too Here are the screenshot of ...
user avatar
4 votes
1 answer
241 views

buffer menu unsort entries

Where can I handle how the control + left-click menu displays entries? This is how it looks when it is displayed the way I want, i.e. with no fancy sorting by file type: And this is how it looks ...
user avatar
2 votes
1 answer
312 views

menu navigation in source file

Is it available a mode that, entering a source file, scans it to find all the function, class and methods declarations and eventually install a menu that enables jumping around in the source file? I ...
user avatar
  • 544
4 votes
3 answers
1k views

How do I page when "ESC - (1 of n) [C-h paging/help]" shows in the emacs status bar?

I am an Emacs newbie having some problems navigating around when using the terminal, but pressing the ESC key brings up a huge list of key options which gives me the option of paging down and possibly ...
user avatar
  • 1,171
4 votes
2 answers
2k views

How to write a function with an interactive choice of the value of the argument?

How to write a function in Emacs Lisp that interactively would give the opportunity to choose one of the options? Choose your animal: Cow Rabbit Dog You have to press 1 to select Cow, 2 to select ...
user avatar
  • 367
1 vote
0 answers
228 views

how to prevent buffer menu from folding

Is there a way to prevent emacs from folding the buffer menu? Example, when I Control + 'right click' on a buffer I see a menu like this: Buffer Menu ----------- JavaScript > XQuery > Custom &...
user avatar
3 votes
3 answers
1k views

How can I create custom menu prompts in elisp?

I have two elisp functions: $ cat ~/myelisp/myoptions.el (defun get-my-name (arg) "Prompt user to enter a string, with input history support." (interactive (list (read-string "Enter your ...
user avatar
0 votes
0 answers
132 views

How to write a loop to remove all the items in menubar?

The menubar of the mac port emacs can not be disabled. I currently use (define-key global-map [menu-bar file] nil) (define-key global-map [menu-bar edit] nil) (define-key global-map [menu-bar ...
user avatar