~protesilaos/denote

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

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

Details
Message ID
<86ttrvsu9r.fsf@nobiot.com>
DKIM signature
missing
Download raw message
Patch: +5 -1
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 <me@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 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
Reply to thread Export thread (mbox)