Questions tagged [menu-bar]
The menu-bar tag has no usage guidance.
53
questions
1
vote
1
answer
32
views
remove (sub)item from menu-bar
Any way to remove an item from menu bar quickly/easily?
For example, I want to remove About GNU:
It's a little annoying to dive into the value of keymap.
Moreover, you need to know the keymap name ...
0
votes
0
answers
26
views
Description of key in define-key [duplicate]
I am failing to understand how
[menu-bar mcp-topm daphne-subm entry-sweep]
is a key as described by define-key for constructing menus.
0
votes
0
answers
58
views
Make the most recently visited buffer on top of the Buffers list with switch-to-buffer under helm
When I do C-x b under helm the topmost buffer in the list is the most recently visited buffer except if another window is currently visiting that buffer.
How can I make the topmost buffer be the most ...
0
votes
1
answer
133
views
Using the push function to append a list to the default-frame-alist variable
I've noticed some people use this to disable the menu bar in the GUI:
(push '(menu-bar-lines . 0) default-frame-alist)
and some people use this:
(menu-bar-mode -1)
Both achieve the same. The first ...
0
votes
0
answers
29
views
default menu-bar :enable functions -- what are they for?
In the default Emacs menubar (menu-bar.el), a lot of menu items are defined the following way:
[...]
'(menu-item "Menu item" foo
:enable (and (menu-bar-menu-frame-live-and-visible-p)
...
2
votes
0
answers
61
views
How do I completely re-define the menubar in 28.2
I have been using XEmacs for years and have completely redefined the menubar for my productivity. I would like to replace XEmacs with Emacs 28.2. I have tried several ways to redefine some menubar ...
1
vote
1
answer
130
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 ...
4
votes
2
answers
179
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&...
1
vote
2
answers
213
views
Can the menubar and scrollbar be customized?
In GTK versions of Emacs (or more generally any GUI version of Emacs), can the scrollbar and menubar colors be customized? I can probably change the look of ALL my GTK applications, but when running ...
0
votes
1
answer
117
views
Why emacs opens a menu with the keybinding bound to another command? [duplicate]
I want to use the command just-one-space which is bound to M-SPC, see the describe key associated with it:
Unfortunately, if I press M-SPC a menu opens up in Emacs:
I was expecting to execute just-...
0
votes
2
answers
138
views
How to remove second row of menu entries (or is it a toolbar)?
I have installed OpenSuse Tumbleweed and later Emacs.
If I start Emacs from the shell,
$ emacs -Q
I have a double row of menu entries
File - Edit - Options - ... - Help
New File - Open - Open ...
1
vote
2
answers
172
views
How to rearrange menu bar to show mode-specific items first
The Emacs menu bar places mode-specific menus after most of the default menu items, but before the "Help" menu*. Specifically: "File", "Edit", "Options", "...
0
votes
2
answers
1k
views
How do I change the color of the menu bar in terminal Emacs?
I am using Emacs in a terminal. This is what the menu bar looks like:
The menu bar has a white foreground and a black background. I want a green background with a pink foreground instead. Is there a ...
0
votes
1
answer
118
views
Blank menus with Athena / Lucid
I compiled Emacs 27.1 with --with-x-toolkit=lucid, now the menus are blank.
I tried setting the colors in ~/.Xresources:
Emacs.pane.menubar.background: black
Emacs.pane.menubar.foreground: white
Emacs....
1
vote
1
answer
100
views
How can I access Mac menu bar help via keyboard?
I'd like to be able to search Emacs's Mac menu bar entries using the keyboard, as you normally do in most other Mac applications using s-? (this answer suggest that it should be possible?).
I've ...
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…
...
1
vote
1
answer
43
views
emacs deamon how to keep mode-line-frame-identification at 1
Each time when I open a new file using emacsclient -t -q file.txt, mode-line-frame-identification number keep increases. What is the reason for it, and can I reaccess to previously numbered frames?
-...
0
votes
1
answer
156
views
Appearance of Menubar titles in gui
I have tried to get new version of Emacs using guix package manager. Which done successfully. Now I also have Emacs 26.1 alongside Emacs 24.
But I am facing a problem that the gui menu-bar titles ...
2
votes
1
answer
77
views
describe key for menu-bar items from `menu-bar-open` calls
Preface: I disabled menu-bar-mode and bound <mouse-3> to menu-bar-open, via (global-set-key [mouse-3] #'menu-bar-open)
With this configuration, how can I get help for menu-bar items?
(My ugly ...
3
votes
1
answer
242
views
How to add a right-aligned menu item to menu-bar?
I hide the window title bar, so I can't use the close window button in the top right corner.
I want to add a menu item with no drop-down menu on the far right side of menu-bar, which can only be ...
1
vote
0
answers
25
views
Prevent menu-bar from expanding too much
The way I have things configured, some Emacs modes end up adding a lot of entries to the menu-bar. As a result, the Emacs frame increases in width. This results in various annoyances.
For now, I've ...
1
vote
2
answers
437
views
Replace clicking a menu bar option from M-` to f10 behavior
When I click on File I want to see
and not
What can I change to provide this functionality? This question didn't really get the right answer.
2
votes
2
answers
118
views
suppress command echoes from menu-bar items
When selecting items from the menu-bar, then the echo area echoes the selected menu item.
Test this by selecting menu-bar -> file -> new window below, when you clicked this menu-bar item, then ...
1
vote
0
answers
162
views
I want the color-theme to highlight the text in the buffers but not change the colors in the menu bar
I loaded a color-theme (manoj-dark) to highlight text in the buffers but it also changed the color of the menu bar. Now the menu bar icons are setting in a black background and the title bar of the ...
2
votes
1
answer
210
views
add command to the "Buffers" menu
Is it possible to ADD commands to the "Buffers" menu? I'd like to add menu entries for:
Open new window below current buffer
Split window
Close current buffer
...and maybe more. I'd want to add ...
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 ...
2
votes
1
answer
84
views
How to delete menu item defined in a parent major from within derived mode?
I'm creating custom major mode derived from js-mode which comes with it's own menu entry "Javascript" (top-level entry, between Tools & Help (sorry, not sure what the correct name for that UI ...
0
votes
2
answers
754
views
Menu bar drop-downs empty
I am using Emacs 25.3.2 on Linux Ubuntu 16.04.
The problem is that several of the menu bar items produce empty drop-downs. A grey box appears, but with nothing inside. It looks like this:
I ...
1
vote
1
answer
297
views
Make Emacs 25 menu bar integrate with Unity
I recently upgraded to Emacs 25. With Emacs 24, the menu bar never integrated with Unity. Emacs always had its own menu bar – Gnome 2 style. One of the first things I noticed after upgrading to Emacs ...
3
votes
2
answers
1k
views
How to use menu bar at the top via mouse?
I am opening emacs in --no-window-system mode and I switched xterm-mouse-mode on. Mouse clicks within a buffer work. However, I want the menu at the top of the window to open when I click on it.
I.e.,...
1
vote
1
answer
265
views
Large blank space between menu-bar and buffer window
There is a large blank space between the top of the buffer and the bottom of the menu-bar in my Emacs 24 on Ubunutu 16.10 that doesn't want to go away. I've tried Googling but can't really find ...
5
votes
1
answer
3k
views
How do I disable menu-bar-mode only for tty frames?
I run both gui frames and tty frames on the same server. I'd like to only have the gui frames have the menu-bar and I want all tty frames to not have a menu bar.
I'm confused by the menu bar docs, is ...
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 ...
0
votes
1
answer
65
views
Variable names for the nw drop down menu faces?
I'm trying to set up a color theme I like when using an xterm. I'm looking through the variable names (e.g. "Font Lock Doc Face") for the theme 'deep-blue' using Custom Theme option. Unfortunately, ...
1
vote
0
answers
29
views
Moving a sub menu to the main menu
How can you move a sub menu -- for example: Search Documentation under Help -- to the main menu?
1
vote
1
answer
137
views
How can I keep the emacs window at a constant size when hiding/showing the menu bar?
I don't like to waste screen space, so usually I have the menu bar hidden. Sometimes, I'd like to show it nevertheless, so I have bound the "menu" key to menu-bar-mode. Works perfectly:
(global-set-...
1
vote
1
answer
1k
views
Dropdown menu not working
The dropdown menus in my installation of Emacs 24.3.1 are not working anymore. Pressing F10 or M-x menu-bar-open opens the menu in a text buffer. I really miss the graphical dropdown menu in text mode....
5
votes
3
answers
2k
views
How to add an item to the menu bar?
I have a set of functions that I'd like to put to menu bar for ease of access. For this, I need to create new menu item on menu bar. How can I achieve that?
1
vote
1
answer
189
views
Adding a menu with radio boxes or check boxes
How do you create options with radio boxes or check boxes in the menu bar? I can't find any examples.
1
vote
0
answers
265
views
Toolbar icons unable to load when running Emacs through xhost from FreeBSD to Ubuntu
I'm connected to a FreeBSD Computer using ssh [ip] -X, and emacs launches just fine, but this happens and all the icons are little pieces of paper with red X's:
> emacs
(emacs:22812): GdkPixbuf-...
4
votes
2
answers
114
views
Understanding "It is bound to ..." message in describe-function
If you ask for a function description, there is a line that starts:
It is bound to <...> <...> <...>
For example, for isearch it says:
It is bound to <menu-bar> <search&...
0
votes
1
answer
210
views
Setting the default font from menu bar does not stick
I am running emacs 24.4.1 on Kubuntu 15.04 and when I open a new frame, Emacs' own default font (i.e. its default default font) is used as the font for that new font, rather than the default font that ...
1
vote
2
answers
2k
views
Fullscreen with no titlebar and no menubar in MS-Windows
Is there a way to easily switch to no-distractions writing environment in Emacs for MS-Windows?
I would prefer to have Emacs started without window titlebar and without menubar and have that without ...
5
votes
3
answers
3k
views
How do I change the menu font size?
Right now the font in the menu bar is way too big, so I would like to add a line to my .emacs file that regulates that font size. I already have a line that takes care of the buffer font size, but it ...
1
vote
0
answers
136
views
easy-menu primary menu separator problem
I really like easy-menu but have discovered an item separator problem; a minimum working example is given below. When I hybrid define-key-after with easy-menu-add-item, the item separators in the &...
3
votes
1
answer
194
views
How can I use the console's menu-bar while running under xwindows?
I like the variable font size feature that emacs has under xwindows.
But, I dislike the menus under xwindows. They are generated by GTK or something and they stick out like a sore thumb.
Can I use ...
2
votes
1
answer
341
views
Why are some buffers not displayed in the menu-bar?
Notice in the screenshot below, the *Paradox Report* buffer is not
displayed in the menu-bar, even though it's clearly a buffer in the
buffer-list.
(source: twimg.com)
An easy way to test this is to ...
2
votes
1
answer
137
views
How to get UTF-8 displayed properly in Emacs menus?
I use GNU Emacs 23.4.1 that comes with Debian Wheezy and UTF-8 as system character encoding. When I add bookmark it displays properly in minibuffer and in the buffer, however the bookmark name is ...
24
votes
2
answers
15k
views
How to use the menu bar in terminal emacs?
I am using emacs on the remote server, and I have no idea how to click on options in the menu bar across the top in this context.
Here is a screen capture:
For example, I want to click some options ...
1
vote
1
answer
2k
views
Emacs: How to enable toolbar mode and menubar mode only under a certain mode?
I use Emacs. However, I am not familiar with Lisp although I do know some functional programming, and hence I never really understood how to customize the init.el.
So basically, I want to be able to ...