From 8029222b2636b4b31f588f16385c70fa2d3d18d9 Mon Sep 17 00:00:00 2001 From: mahinshaw Date: Fri, 19 Feb 2016 10:30:32 -0800 Subject: [PATCH] Add mapping for switching between repl connections. --- layers/+lang/clojure/README.org | 1 + layers/+lang/clojure/packages.el | 2 ++ 2 files changed, 3 insertions(+) diff --git a/layers/+lang/clojure/README.org b/layers/+lang/clojure/README.org index ebb6188ef..a6321ebb0 100644 --- a/layers/+lang/clojure/README.org +++ b/layers/+lang/clojure/README.org @@ -155,6 +155,7 @@ As this state works the same for all files, the documentation is in global | ~SPC m s n~ | send and eval ns form in REPL | | ~SPC m s N~ | send and eval ns form and switch to REPL in =insert state= | | ~SPC m s q~ | kill REPL (cider-quit) | +| ~SPC m s o~ | switch to other repl instance (cider-repl-switch-to-other) | | ~SPC m s r~ | send and eval region in REPL | | ~SPC m s R~ | send and eval region and switch to REPL in =insert state= | | ~SPC m s s~ | switch to REPL | diff --git a/layers/+lang/clojure/packages.el b/layers/+lang/clojure/packages.el index 68f6c86e5..5b85e464b 100644 --- a/layers/+lang/clojure/packages.el +++ b/layers/+lang/clojure/packages.el @@ -229,6 +229,7 @@ If called with a prefix argument, uses the other-window instead." "sI" 'cider-jack-in-clojurescript "sn" 'spacemacs/cider-send-ns-form-to-repl "sN" 'spacemacs/cider-send-ns-form-to-repl-focus + "so" 'cider-repl-switch-to-other "sq" 'cider-quit "sr" 'spacemacs/cider-send-region-to-repl "sR" 'spacemacs/cider-send-region-to-repl-focus @@ -263,6 +264,7 @@ If called with a prefix argument, uses the other-window instead." "sc" 'cider-repl-clear-buffer "sn" 'cider-repl-set-ns + "so" 'cider-repl-switch-to-other "sq" 'cider-quit "ss" 'cider-switch-to-last-clojure-buffer "sx" 'cider-refresh