From af2d7e320e162e46c50cb26f4eac01b062c59ddd Mon Sep 17 00:00:00 2001 From: jr0cket Date: Tue, 10 Mar 2020 14:32:30 +0000 Subject: [PATCH] [clojure] keybindings for browsing clojure specs Browse a specific clojure spec or browse all specs in a project. --- CHANGELOG.develop | 3 +++ layers/+lang/clojure/README.org | 2 ++ layers/+lang/clojure/packages.el | 3 +++ 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index 945d337e2..ff7e58a96 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -1522,6 +1522,9 @@ Other: - added evaluation keybinding - go to end of line and evaluate sexp ~SPC m e $~ 'spacemacs/cider-eval-sexp-end-of-line ~SPC m e l~ 'spacemacs/cider-eval-sexp-end-of-line + - added browse-spec keybindings + ~SPC m h s~ 'cider-browse-spec + ~SPC m h S~ 'cider-browse-spec-all - Fixes: - Removed =cider.nrepl/cider-middleware= in lein quick start setting - Fixed =cider-inspector-prev-page= binding, also add ~p~ as another key diff --git a/layers/+lang/clojure/README.org b/layers/+lang/clojure/README.org index 87a0b35ee..c7e02151c 100644 --- a/layers/+lang/clojure/README.org +++ b/layers/+lang/clojure/README.org @@ -475,6 +475,8 @@ Managing CIDER REPL connections and sessions | ~SPC m h j~ | cider javadoc | | ~SPC m h n~ | cider browse namespace | | ~SPC m h N~ | cider browse all namespaces | +| ~SPC m h s~ | cider-browse-spec | +| ~SPC m h S~ | cider-browse-spec-all | *** Evaluation Evaluate Clojure code in the source code buffer diff --git a/layers/+lang/clojure/packages.el b/layers/+lang/clojure/packages.el index 5e9348b86..d1baca6b5 100644 --- a/layers/+lang/clojure/packages.el +++ b/layers/+lang/clojure/packages.el @@ -99,6 +99,9 @@ "hj" 'cider-javadoc "hn" 'cider-browse-ns "hN" 'cider-browse-ns-all + "hs" 'cider-browse-spec + "hS" 'cider-browse-spec-all + ;; evaluate in source code buffer "e;" 'cider-eval-defun-to-comment