diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-27 18:45:23 -0500 | 
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-27 18:45:23 -0500 | 
| commit | 87034eab17625165b884128d8058c1158fc2f50f (patch) | |
| tree | 24255d08fb90fe748c6a6c41900e138c26e3de04 /modules/org-roam-config.el | |
| parent | 0fc12069864b3d964cf8175173b4f3183bc73c92 (diff) | |
feat:which-key: Add descriptive labels for custom keymaps
Enhance which-key integration by providing detailed descriptions for
new key bindings across multiple modules. This improves the
usability of custom keymaps by clarifying the purpose of each
keybinding, making it easier for users to navigate and understand
different menus and options available within the configuration.
This update ensures that all custom keymaps now display a
descriptive label in the which-key popup to explain their
functionality, aiding users in identifying keymap purposes promptly.
Diffstat (limited to 'modules/org-roam-config.el')
| -rw-r--r-- | modules/org-roam-config.el | 18 | 
1 files changed, 17 insertions, 1 deletions
| diff --git a/modules/org-roam-config.el b/modules/org-roam-config.el index 07098743..f78b68da 100644 --- a/modules/org-roam-config.el +++ b/modules/org-roam-config.el @@ -85,7 +85,9 @@    (add-to-list 'org-after-todo-state-change-hook                 (lambda ()                   (when (and (member org-state org-done-keywords) -                            (not (member org-last-state org-done-keywords))) +                            (not (member org-last-state org-done-keywords)) +                            ;; Don't run for gcal.org - it's managed by org-gcal +                            (not (string= (buffer-file-name) (expand-file-name gcal-file))))                     (cj/org-roam-copy-todo-to-today)))))  ;; ------------------------- Org Roam Insert Immediate ------------------------- @@ -294,5 +296,19 @@ title."  	;; Message to user  	(message "'%s' added as an org-roam node." title))) +;; which-key labels +(with-eval-after-load 'which-key +  (which-key-add-key-based-replacements +    "C-c n" "org-roam menu" +    "C-c n l" "roam buffer toggle" +    "C-c n f" "roam find node" +    "C-c n p" "roam find project" +    "C-c n r" "roam find recipe" +    "C-c n t" "roam find topic" +    "C-c n i" "roam insert node" +    "C-c n w" "roam find webclip" +    "C-c n I" "roam insert immediate" +    "C-c n d" "roam dailies menu")) +  (provide 'org-roam-config)  ;;; org-roam-config.el ends here. | 
