Questions tagged [menus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Strings in menu cons

I am making a topmenu named MCP with a submenu named Daphne. ;; Topmenu MCP (define-key-after global-map [menu-bar mcp-menu] (cons "MCP" (make-sparse-keymap "MCP")) 'Tools) ...
Dilna's user avatar
  • 1
0 votes
1 answer
90 views

Introducing a menu by clicking the mode-line lighter

I have a menu defined in tika-menuitm-kymap which I want to incorporate in the mode line of the minor mode. How can I set up the minor mode properties so that the menu shows up in the mode-line ? My ...
Dilna's user avatar
  • 1
-2 votes
1 answer
44 views

Adding separators between menu items

Have made the following KMAP keymap, and would like to add separators in the menu. To separate the Hide keymap from the Show keymap. How can I do it? (defvar tika-outlmenu-kmap (let ((kmap (make-...
Dilna's user avatar
  • 1
1 vote
1 answer
129 views

Changing the colours of menu-bar pop-ups (not of the menu-bar itself)

[Crossposting from gnu.emacs.help after getting no response there.] With Emacs 27.1, in the terminal the standard colour scheme, the pop-ups of the menu I get via F10 have a blue background and with ...
loris's user avatar
  • 315
4 votes
2 answers
178 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&...
Flux's user avatar
  • 593
0 votes
1 answer
50 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 ...
gigiair's user avatar
  • 2,134
0 votes
0 answers
34 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 "======&...
Flux's user avatar
  • 593
2 votes
1 answer
142 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-...
GrB's user avatar
  • 207
0 votes
0 answers
64 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… ...
gboffi's user avatar
  • 594
0 votes
1 answer
45 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 ...
Rahul's user avatar
  • 23
1 vote
1 answer
315 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 ...
Tom's user avatar
  • 1,190
1 vote
2 answers
264 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 ...
kkm -still wary of SE promises's user avatar
3 votes
0 answers
54 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 ...
jue's user avatar
  • 4,501
1 vote
1 answer
512 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 ...
ivo Welch's user avatar
  • 113
1 vote
2 answers
946 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 ...
prash's user avatar
  • 111
3 votes
2 answers
568 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 ...
ideasman42's user avatar
  • 8,546
1 vote
0 answers
147 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 ...
jue's user avatar
  • 4,501
0 votes
0 answers
241 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 ...
wolfv's user avatar
  • 1,393
1 vote
1 answer
122 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 ...
user52932's user avatar
0 votes
0 answers
80 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 ...
Anthony Kong's user avatar
4 votes
1 answer
275 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 ...
Andrea Borga's user avatar
2 votes
1 answer
337 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 ...
gboffi's user avatar
  • 594
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 ...
vfclists's user avatar
  • 1,371
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 ...
Valeriy's user avatar
  • 377
1 vote
0 answers
260 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 &...
chriskelly's 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 ...
Brian Fitzpatrick's user avatar
0 votes
0 answers
155 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 ...
Saddle Point's user avatar