aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 01:00:59 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 01:00:59 -0500
commit7a5edbcb9d2678161c61d714aa9780d684281217 (patch)
treef5dea00ff3b029052355bfc3cb735546132ddc5a /modules
parentfa9b9463aba6dc73fc4266a8e0069506009ce0e0 (diff)
downloaddotemacs-7a5edbcb9d2678161c61d714aa9780d684281217.tar.gz
dotemacs-7a5edbcb9d2678161c61d714aa9780d684281217.zip
feat(org): label the C-; O org prefix in which-key
The C-; O prefix (cj/org-map) had no which-key labels, so the popup just showed raw command names, and nothing at all for the d (finalize-task) binding. I added labels for the whole prefix, including the r/c table sub-prefixes. The two org-show-all bindings are labeled "cancel sparse tree" (S) and "cancel todo tree" (T) so the popup shows what each one cancels rather than two identical "show all" entries.
Diffstat (limited to 'modules')
-rw-r--r--modules/org-config.el22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/org-config.el b/modules/org-config.el
index fa1ca78e..a2615b0c 100644
--- a/modules/org-config.el
+++ b/modules/org-config.el
@@ -419,6 +419,28 @@ gains a date-only CLOSED line."
(keymap-set cj/org-map "d" #'cj/org-finalize-task)
+;; which-key labels for the C-; O org prefix. Registered lazily so this
+;; module's load doesn't depend on which-key being present.
+(with-eval-after-load 'which-key
+ (which-key-add-keymap-based-replacements cj/org-map
+ "n" "narrow to subtree"
+ "N" "widen"
+ ">" "narrow forward"
+ "<" "narrow backward"
+ "s" "sparse tree (match)"
+ "S" "cancel sparse tree"
+ "t" "todo tree"
+ "T" "cancel todo tree"
+ "R" "reveal"
+ "C" "clear element cache"
+ "d" "finalize task (dated)"
+ "r" "table row"
+ "r i" "insert row"
+ "r d" "kill row"
+ "c" "table column"
+ "c i" "insert column"
+ "c d" "delete column"))
+
;; ------------------------------ Org Keybindings ------------------------------
;; which-key labels for org keymaps