Skip to content

Commit 84999fc

Browse files
author
Bozhidar Batsov
committed
[Fix #683] Don't use C-c C-h keybindings
1 parent d68f184 commit 84999fc

File tree

4 files changed

+31
-18
lines changed

4 files changed

+31
-18
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ integration.
1717
* [#22](https://github.com/clojure-emacs/cider/issues/22): New command
1818
`cider-jump-to-resource` (bound to <kbd>C-c M-.</kbd>).
1919
* [#664](https://github.com/clojure-emacs/cider/pull/664): New apropos support:
20-
search function/var names (bound to <kbd>C-c C-h a</kbd>) or documentation
21-
(bound to <kbd>C-c C-h d</kbd>).
20+
search function/var names (bound to <kbd>C-c C-d a</kbd>) or documentation
21+
(bound to <kbd>C-c C-d A</kbd>).
2222
* You can open Grimoire's entry for a particular Clojure (built-in) symbol with
23-
`cider-grimoire` (<kbd>C-c C-h g</kbd>).
23+
`cider-grimoire` (<kbd>C-c C-d g</kbd>).
2424

2525
### Changes
2626

@@ -43,7 +43,9 @@ paths over tramp by default.
4343
* [#610](https://github.com/clojure-emacs/cider/pull/610): Present error and
4444
stacktrace info for all exception causes.
4545
* Removed `cider-repl-print-length` config option and
46-
`cider-repl-toggle-print-length-limiting` command.
46+
`cider-repl-toggle-print-length-limiting` command.
47+
* Remapped `cider-doc` to <kbd>C-c C-d d</kbd>.
48+
* Remapped `cider-javadoc` to <kbd>C-c C-d j</kbd>
4749

4850
### Bugs fixed
4951

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ Keyboard shortcut | Description
556556
<kbd>C-c M-o</kbd> | Clear the entire REPL buffer, leaving only a prompt. Useful if you're running the REPL buffer in a side by side buffer.
557557
<kbd>C-c C-k</kbd> | Load the current buffer.
558558
<kbd>C-c C-l</kbd> | Load a file.
559-
<kbd>C-c C-d</kbd> | Display doc string for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
560-
<kbd>C-c C-j</kbd> | Display JavaDoc (in your default browser) for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
559+
<kbd>C-c C-d d</kbd> | Display doc string for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
560+
<kbd>C-c C-d j</kbd> | Display JavaDoc (in your default browser) for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
561561
<kbd>C-c M-i</kbd> | Inspect expression. Will act on expression at point if present.
562562
<kbd>C-c M-t</kbd> | Toggle var tracing.
563563
<kbd>C-c ,</kbd> | Run tests for namespace.
@@ -568,9 +568,9 @@ Keyboard shortcut | Description
568568
<kbd>C-c M-.</kbd> | Jump to the resource referenced by the string at point.
569569
<kbd>M-,</kbd> | Return to your pre-jump location.
570570
<kbd>M-TAB</kbd> | Complete the symbol at point.
571-
<kbd>C-c C-h g</kbd> | Lookup symbol in Grimoire.
572-
<kbd>C-c C-h a</kbd> | Apropos search for functions/vars.
573-
<kbd>C-c C-h d</kbd> | Apropos search for documentation.
571+
<kbd>C-c C-d g</kbd> | Lookup symbol in Grimoire.
572+
<kbd>C-c C-d a</kbd> | Apropos search for functions/vars.
573+
<kbd>C-c C-d A</kbd> | Apropos search for documentation.
574574

575575
### cider-repl-mode
576576

@@ -588,8 +588,11 @@ Keyboard shortcut | Description
588588
<kbd>M-s</kbd> <kbd>M-r</kbd> | Search forward/reverse through command history with regex.
589589
<kbd>C-c C-n</kbd> <kbd>C-c C-p</kbd> | Move between the current and previous prompts in the REPL buffer. Pressing <kbd>RET</kbd> on a line with old input copies that line to the newest prompt.
590590
<kbd>TAB</kbd> | Complete symbol at point.
591-
<kbd>C-c C-d</kbd> | Display doc string for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol
592-
<kbd>C-c C-j</kbd> | Display JavaDoc (in your default browser) for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
591+
<kbd>C-c C-d d</kbd> | Display doc string for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol
592+
<kbd>C-c C-d j</kbd> | Display JavaDoc (in your default browser) for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
593+
<kbd>C-c C-d g</kbd> | Lookup symbol in Grimoire.
594+
<kbd>C-c C-d a</kbd> | Apropos search for functions/vars.
595+
<kbd>C-c C-d A</kbd> | Apropos search for documentation.
593596
<kbd>C-c C-z</kbd> | Switch to the previous Clojure buffer. This complements <kbd>C-c C-z</kbd> used in cider-mode.
594597
<kbd>C-c M-f</kbd> | Select a function from the current namespace and insert into the REPL buffer.
595598
<kbd>C-c M-i</kbd> | Inspect expression. Will act on expression at point if present.

cider-mode.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@
3838
(define-key map (kbd "M-,") 'cider-jump-back)
3939
(define-key map (kbd "C-c M-.") 'cider-jump-to-resource)
4040
(define-key map (kbd "M-TAB") 'complete-symbol)
41-
(define-key map (kbd "C-c C-h a") 'cider-apropos)
42-
(define-key map (kbd "C-c C-h d") 'cider-apropos-documentation)
43-
(define-key map (kbd "C-c C-h g") 'cider-grimoire)
41+
(define-key map (kbd "C-c C-d a") 'cider-apropos)
42+
(define-key map (kbd "C-c C-d A") 'cider-apropos-documentation)
43+
(define-key map (kbd "C-c C-d g") 'cider-grimoire)
44+
(define-key map (kbd "C-c C-d j") 'cider-javadoc)
45+
(define-key map (kbd "C-c C-d d") 'cider-doc)
4446
(define-key map (kbd "C-M-x") 'cider-eval-defun-at-point)
4547
(define-key map (kbd "C-c C-c") 'cider-eval-defun-at-point)
4648
(define-key map (kbd "C-x C-e") 'cider-eval-last-sexp)
@@ -58,13 +60,11 @@
5860
(define-key map (kbd "C-c M-n") 'cider-repl-set-ns)
5961
(define-key map (kbd "C-c M-i") 'cider-inspect)
6062
(define-key map (kbd "C-c M-t") 'cider-toggle-trace)
61-
(define-key map (kbd "C-c C-d") 'cider-doc)
6263
(define-key map (kbd "C-c C-z") 'cider-switch-to-repl-buffer)
6364
(define-key map (kbd "C-c M-o") 'cider-find-and-clear-repl-buffer)
6465
(define-key map (kbd "C-c C-k") 'cider-load-current-buffer)
6566
(define-key map (kbd "C-c C-l") 'cider-load-file)
6667
(define-key map (kbd "C-c C-b") 'cider-interrupt)
67-
(define-key map (kbd "C-c C-j") 'cider-javadoc)
6868
(define-key map (kbd "C-c ,") 'cider-test-run-tests)
6969
(define-key map (kbd "C-c C-,") 'cider-test-rerun-tests)
7070
(define-key map (kbd "C-c M-,") 'cider-test-run-test)
@@ -103,6 +103,7 @@
103103
"--"
104104
["Display documentation" cider-doc]
105105
["Display JavaDoc" cider-javadoc]
106+
["Display Grimoire documentation" cider-grimoire]
106107
["Inspect" cider-inspect]
107108
"--"
108109
["Run test" cider-test-run-test]

cider-repl.el

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,11 @@ ENDP) DELIM."
988988
(define-key map (kbd "TAB") 'cider-repl-tab)
989989
(define-key map (kbd "C-<return>") 'cider-repl-closing-return)
990990
(define-key map (kbd "C-j") 'cider-repl-newline-and-indent)
991-
(define-key map (kbd "C-c C-d") 'cider-doc)
991+
(define-key map (kbd "C-c C-d a") 'cider-apropos)
992+
(define-key map (kbd "C-c C-d A") 'cider-apropos-documentation)
993+
(define-key map (kbd "C-c C-d g") 'cider-grimoire)
994+
(define-key map (kbd "C-c C-d d") 'cider-doc)
995+
(define-key map (kbd "C-c C-d j") 'cider-javadoc)
992996
(define-key map (kbd "C-c C-o") 'cider-repl-clear-output)
993997
(define-key map (kbd "C-c M-o") 'cider-repl-clear-buffer)
994998
(define-key map (kbd "C-c M-n") 'cider-repl-set-ns)
@@ -1007,7 +1011,6 @@ ENDP) DELIM."
10071011
(define-key map (kbd "C-c C-p") 'cider-repl-previous-prompt)
10081012
(define-key map (kbd "C-c C-b") 'cider-interrupt)
10091013
(define-key map (kbd "C-c C-c") 'cider-interrupt)
1010-
(define-key map (kbd "C-c C-j") 'cider-javadoc)
10111014
(define-key map (kbd "C-c C-m") 'cider-macroexpand-1)
10121015
(define-key map (kbd "C-c M-m") 'cider-macroexpand-all)
10131016
(define-key map (kbd "C-c C-z") 'cider-switch-to-last-clojure-buffer)
@@ -1029,8 +1032,12 @@ ENDP) DELIM."
10291032
["Jump to resource" cider-jump-to-resource]
10301033
["Jump back" cider-jump-back]
10311034
"--"
1035+
["Search functions/vars" cider-apropos]
1036+
["Search documentation" cider-apropos-documentation]
1037+
"--"
10321038
["Display documentation" cider-doc]
10331039
["Display JavaDoc" cider-javadoc]
1040+
["Display Grimoire documentation" cider-grimoire]
10341041
["Inspect" cider-inspect]
10351042
"--"
10361043
["Set REPL ns" cider-repl-set-ns]

0 commit comments

Comments
 (0)