Skip to content

Commit 37b30be

Browse files
arichiardibbatsov
authored andcommitted
Bind C-c M-c to inf-clojure-connect
A lot of muscle memory thanks to cider for this.
1 parent 0bb2700 commit 37b30be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ command line with `planck -n 5555`.
8484
Use `C-u C-c C-z` to start a REPL with a different command/cons pair than
8585
the default specified in `inf-clojure-program`.
8686

87-
You can use `M-x inf-clojure-connect` to connect to a running socket-repl.
88-
You will be prompted for host and port.
87+
You can use `M-x inf-clojure-connect` (`C-c M-c`) to connect to a running
88+
socket-repl. You will be prompted for host and port.
8989

9090
You can set custom values to `inf-clojure` variables on a per-project basis using [directory
9191
variables](https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html).

inf-clojure.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ mode. Default is whitespace followed by 0 or 1 single-letter colon-keyword
140140
(define-key map "\C-c\C-s" #'inf-clojure-show-var-source)
141141
(define-key map "\C-c\M-n" #'inf-clojure-set-ns)
142142
(define-key map "\C-c\C-q" #'inf-clojure-quit)
143+
(define-key map "\C-c\M-c" #'inf-clojure-connect)
143144
(easy-menu-define inf-clojure-minor-mode-menu map
144145
"Inferior Clojure Minor Mode Menu"
145146
'("Inf-Clojure"

0 commit comments

Comments
 (0)