You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where ~/github/rust-mode/ is just a fresh clone of this repo.
Then somewhat below that, I am defining 3 extra main menu entries:
;; add menu item: show file path
(define-key-after
(lookup-key global-map [menu-bar file])
[show-file-name]
'("Show path". show-file-name)
'insert-file)
;; add menu item: delete window
(define-key-after
(lookup-key global-map [menu-bar file])
[delete-window]
'("Delete window". delete-window)
'new-window-on-right)
;; add menu item: highlight occurences of the symbol at point
(define-key-after
(lookup-key global-map [menu-bar edit])
[highlight-symbol-at-point]
'("Highlight occurences". highlight-symbol-at-point)
'mark-whole-buffer)
Unfortunately, those 3 extra entries do not appear any more. Not just in Rust mode, but in just about any mode (including Fundamental and Text). If I disable Rust mode by commenting out the entire ;; rust mode snippet, then I can see those 3 extra main menu entries again. What am I doing wrong?
This is:
GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
of 2022-12-31, modified by Debian
Thanks!
The text was updated successfully, but these errors were encountered:
In my
.emacs
I am enablingrust-mode
in the following way:where
~/github/rust-mode/
is just a fresh clone of this repo.Then somewhat below that, I am defining 3 extra main menu entries:
Unfortunately, those 3 extra entries do not appear any more. Not just in Rust mode, but in just about any mode (including Fundamental and Text). If I disable Rust mode by commenting out the entire
;; rust mode
snippet, then I can see those 3 extra main menu entries again. What am I doing wrong?This is:
Thanks!
The text was updated successfully, but these errors were encountered: