branch: externals/denote commit dff73d46c598926e44d477d77c8ceadbbb7c3ed9 Author: Noboru Ota <m...@nobiot.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Move "Denote" menu on menu-bar to the end after "Tools" Hi Prot and all in the list. I'm happy to see that Prot has got his off-grid electricity cabin up. Hope everything is working as you expect it to, Prot. Here is a patch. I have got this method from Charles Choi's blog article, "Using Bookmarks in Emacs like you do in Web Browsers" [1]. [1]:http://yummymelon.com/devnull/using-bookmarks-in-emacs-like-you-do-in-web-browsers.html – nobiot >From ec217494621d6d70f28c9c3a1eb1b0539e6e92b7 Mon Sep 17 00:00:00 2001 From: Noboru Ota <m...@nobiot.com> Date: Fri, 15 Sep 2023 09:18:08 +0200 Subject: [PATCH] Move "Denote" menu on menu-bar to the end of global-map after Tools --- denote.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/denote.el b/denote.el index 43e9007647..782737b94d 100644 --- a/denote.el +++ b/denote.el @@ -3489,10 +3489,14 @@ This command is meant to be used from a Dired buffer." :selected (bound-and-true-p denote-dired-mode)]) "Contents of the Denote menu.") -(easy-menu-define denote-global-menu global-map +(easy-menu-define denote-global-menu nil "Menu with all Denote commands, each available in the right context." denote--menu-contents) +;; Add Denote menu at the end of global-map after Tools +(easy-menu-add-item global-map '(menu-bar) + denote-global-menu) + (defun denote-context-menu (menu _click) "Populate MENU with Denote commands at CLICK." (define-key menu [denote-separator] menu-bar-separator)