branch: elpa/inf-clojure commit 37b30be2fb644316b1afbc16e32ecb066b30579e Author: Andrea Richiardi <a.richiardi.w...@gmail.com> Commit: Bozhidar Batsov <bozhidar.bat...@gmail.com>
Bind C-c M-c to inf-clojure-connect A lot of muscle memory thanks to cider for this. --- README.md | 4 ++-- inf-clojure.el | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7fa0384..98732c8 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,8 @@ command line with `planck -n 5555`. Use `C-u C-c C-z` to start a REPL with a different command/cons pair than the default specified in `inf-clojure-program`. -You can use `M-x inf-clojure-connect` to connect to a running socket-repl. -You will be prompted for host and port. +You can use `M-x inf-clojure-connect` (`C-c M-c`) to connect to a running +socket-repl. You will be prompted for host and port. You can set custom values to `inf-clojure` variables on a per-project basis using [directory variables](https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html). diff --git a/inf-clojure.el b/inf-clojure.el index b38735f..dac3e81 100644 --- a/inf-clojure.el +++ b/inf-clojure.el @@ -140,6 +140,7 @@ mode. Default is whitespace followed by 0 or 1 single-letter colon-keyword (define-key map "\C-c\C-s" #'inf-clojure-show-var-source) (define-key map "\C-c\M-n" #'inf-clojure-set-ns) (define-key map "\C-c\C-q" #'inf-clojure-quit) + (define-key map "\C-c\M-c" #'inf-clojure-connect) (easy-menu-define inf-clojure-minor-mode-menu map "Inferior Clojure Minor Mode Menu" '("Inf-Clojure"