~protesilaos/denote

Move "Denote" menu on menu-bar to the end after Tools v1 APPLIED

Noboru Ota: 1
 Move "Denote" menu on menu-bar to the end after Tools

 1 files changed, 5 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~protesilaos/denote/patches/44738/mbox | git am -3
Learn more about email & git

[PATCH] Move "Denote" menu on menu-bar to the end after Tools Export this patch

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 new 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 <me@nobiot.com>
Date: Fri, 15 Sep 2023 09:18:08 +0200
Subject: [PATCH] Move "Denote" menu on menu-bar to the end after Tools

---
 denote.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 43e9007..782737b 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)
--
2.34.1
Hello Noboru and everybody reading this,