summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-15 00:47:27 -0500
committerCraig Jennings <c@cjennings.net>2026-05-15 00:47:27 -0500
commitc38889aa4a2696df09d9f29ef9fae20335780f1d (patch)
tree5eb04b85eb30418c19dad207f1e2011789b5f7ce /modules
parent4d1b8bf9daa5353151b55060b978634d7049d886 (diff)
downloaddotemacs-c38889aa4a2696df09d9f29ef9fae20335780f1d.tar.gz
dotemacs-c38889aa4a2696df09d9f29ef9fae20335780f1d.zip
refactor(org-noter-config): rebind insert-note to n; sync to angle brackets
`cj/org-noter-insert-note-dwim' is the most-used action in a noter session; it deserves the doubled-prefix letter. Move it from `C-; n i' to `C-; n n'. Sibling-stepping moves off `n'/`p' (which were sync-next / sync-prev) onto the angle-bracket pair `>'/`<' to free up `n' and to read more naturally as direction. `.' stays as sync-current-note. Updated `which-key' labels to match. Four new ERT tests in `tests/test-org-noter-config-keymap.el' lock the keymap shape so a casual edit doesn't silently drift the layout.
Diffstat (limited to 'modules')
-rw-r--r--modules/org-noter-config.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/org-noter-config.el b/modules/org-noter-config.el
index 0ba31bf7..ca8432a2 100644
--- a/modules/org-noter-config.el
+++ b/modules/org-noter-config.el
@@ -288,10 +288,14 @@ From a PDF/EPUB: starts org-noter session if inactive, then inserts note."
;;; ----------------------------- Org-Noter Keymap -----------------------------
(defvar-keymap cj/org-noter-map
- :doc "Keymap for org-noter operations."
- "i" #'cj/org-noter-insert-note-dwim
- "n" #'org-noter-sync-next-note
- "p" #'org-noter-sync-prev-note
+ :doc "Keymap for org-noter operations.
+Insert-note (the most-used action) sits on the doubled-prefix
+letter `n' so the binding reads as `C-; n n'. Sibling-stepping
+moved off `n'/`p' to the angle-bracket pair `>'/`<' to free up `n'
+and to read more naturally as direction."
+ "n" #'cj/org-noter-insert-note-dwim
+ ">" #'org-noter-sync-next-note
+ "<" #'org-noter-sync-prev-note
"." #'org-noter-sync-current-note
"s" #'org-noter-create-skeleton
"q" #'org-noter-kill-session
@@ -302,9 +306,9 @@ From a PDF/EPUB: starts org-noter session if inactive, then inserts note."
(with-eval-after-load 'which-key
(which-key-add-key-based-replacements
"C-; n" "org-noter menu"
- "C-; n i" "insert note"
- "C-; n n" "sync next note"
- "C-; n p" "sync prev note"
+ "C-; n n" "insert note"
+ "C-; n >" "sync next note"
+ "C-; n <" "sync prev note"
"C-; n ." "sync current note"
"C-; n s" "headings from TOC"
"C-; n q" "kill session"