[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote f0910d3146 13/20: Add denote-menu-bar-mode, maki
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote f0910d3146 13/20: Add denote-menu-bar-mode, making the Denote menu bar optional |
Date: |
Wed, 20 Dec 2023 03:58:01 -0500 (EST) |
branch: externals/denote
commit f0910d31465090e181efcbba7e7b356329bc1429
Author: Joseph Turner <joseph@breatheoutbreathe.in>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add denote-menu-bar-mode, making the Denote menu bar optional
This reduces the effect that merely loading denote.el has on Emacs.
---
denote.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index d9210e1518..89b2b276a3 100644
--- a/denote.el
+++ b/denote.el
@@ -3798,10 +3798,15 @@ This command is meant to be used from a Dired buffer."
:selected (bound-and-true-p denote-dired-mode)])
"Contents of the Denote menu.")
-(define-key-after global-map [menu-bar denote]
- (easy-menu-binding
- (easy-menu-create-menu "Denote" denote--menu-contents) "Denote")
- "Tools")
+;;;###autoload
+(define-minor-mode denote-menu-bar-mode "Show Denote menu bar."
+ :global t
+ (if denote-menu-bar-mode
+ (define-key-after global-map [menu-bar denote]
+ (easy-menu-binding
+ (easy-menu-create-menu "Denote" denote--menu-contents) "Denote")
+ "Tools")
+ (define-key global-map [menu-bar denote] nil)))
(defun denote-context-menu (menu _click)
"Populate MENU with Denote commands at CLICK."
- [elpa] externals/denote updated (d47ef97062 -> ee58ae014d), ELPA Syncer, 2023/12/20
- [elpa] externals/denote b996b7e6f0 02/20: Refactor denote-add-front-matter, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 4261d19a88 12/20: Put Denote menu bar after "Tools", ELPA Syncer, 2023/12/20
- [elpa] externals/denote aa7bf58234 18/20: Enable Denote menu bar by default, ELPA Syncer, 2023/12/20
- [elpa] externals/denote f770346729 19/20: Merge branch 'main' of git.sr.ht:~protesilaos/denote, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 667c1370ba 15/20: Remove unwind-protect from denote--command-with-default-title, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 6d71d3e1d3 04/20: Refactor denote-retrieve-filename-* functions, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 7ca08f2a66 07/20: Refactor denote-org-capture and remove denote-org-capture-with-prompts, ELPA Syncer, 2023/12/20
- [elpa] externals/denote f0910d3146 13/20: Add denote-menu-bar-mode, making the Denote menu bar optional,
ELPA Syncer <=
- [elpa] externals/denote 6e5ddc2623 01/20: Refactor denote-file-has-identifier-p and use it in various functions, ELPA Syncer, 2023/12/20
- [elpa] externals/denote faaf5f94ab 03/20: Use denote-rename-max-mini-window-height in denote-change-file-type-and-front-matter, ELPA Syncer, 2023/12/20
- [elpa] externals/denote e6b7ba74e6 05/20: Make denote-retrieve-filename-identifier consistent with other functions, ELPA Syncer, 2023/12/20
- [elpa] externals/denote f1730b7798 17/20: Acknowledge Ashton Wiersdorf for commit e2ba6c1, ELPA Syncer, 2023/12/20
- [elpa] externals/denote f26d8d7799 08/20: Handle nil case in denote-sort--define-lessp, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 4899ca5c78 09/20: Remove separator for the last file in denote-org-dblock-add-files, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 6acb25c7ec 10/20: Create aliases for denote-retrieve-front-matter-* functions, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 195f0c3b7f 14/20: Acknowledge Joseph Turner for commits 4261d19, f0910d3, ELPA Syncer, 2023/12/20
- [elpa] externals/denote 3d4891b5dd 06/20: Rename denote-retrieve-title-* and denote-retrieve-keywords-* functions, ELPA Syncer, 2023/12/20
- [elpa] externals/denote e2ba6c144d 16/20: Guard sorting keywords when given an empty string, ELPA Syncer, 2023/12/20