Skip to content

Commit dd8fccf

Browse files
committed
Add documentation macro to minor mode for keybindings
Inserts the default documentation for keybindings into the output for C-h m or C-h f clj-refactor-mode. Given all the hydra and other documentation overrides it might be preferable to link to that, but I think this increased discover-ability as is.
1 parent 7199d27 commit dd8fccf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Up next
44

5+
- Display keymap bindings in documentation for minor mode
56
- New config setting `cljr-libspec-whitelist` to prevent libspecs which appear unused but are side-effecting at load from being pruned.
67
- [#301] (https://github.com/clojure-emacs/clj-refactor.el/issues/301) `ad` has gained a prefix to declare the symbol under the cursor.
78
- [#312](https://github.com/clojure-emacs/clj-refactor.el/issues/312) Allow `sut` alias to be customized.

clj-refactor.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3985,7 +3985,9 @@ If injecting the dependencies is not preferred set `cljr-inject-dependencies-at-
39853985
;; ------ minor mode -----------
39863986
;;;###autoload
39873987
(define-minor-mode clj-refactor-mode
3988-
"A mode to keep the clj-refactor keybindings."
3988+
"A mode to keep the clj-refactor keybindings.
3989+
3990+
\\{clj-refactor-map}"
39893991
nil " cljr" clj-refactor-map
39903992
(if clj-refactor-mode
39913993
(add-hook 'post-command-hook #'cljr--post-command-hook :append :local)

0 commit comments

Comments
 (0)