This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-17
Channels
- # announcements (2)
- # aws (4)
- # babashka (20)
- # beginners (256)
- # calva (15)
- # chlorine-clover (1)
- # cider (12)
- # clj-kondo (25)
- # cljsrn (16)
- # clojure (115)
- # clojure-europe (7)
- # clojure-finland (5)
- # clojure-italy (10)
- # clojure-nl (35)
- # clojure-spec (13)
- # clojure-uk (83)
- # clojurescript (42)
- # code-reviews (81)
- # conjure (8)
- # cursive (6)
- # data-science (1)
- # datomic (3)
- # duct (18)
- # emacs (2)
- # figwheel-main (40)
- # fulcro (21)
- # helix (1)
- # jackdaw (7)
- # java (2)
- # lein-figwheel (5)
- # luminus (1)
- # observability (12)
- # off-topic (32)
- # parinfer (5)
- # pedestal (19)
- # re-frame (5)
- # reagent (8)
- # reitit (17)
- # rewrite-clj (47)
- # rum (19)
- # shadow-cljs (48)
- # spacemacs (4)
- # sql (40)
- # tools-deps (22)
- # vrac (1)
- # xtdb (25)
I use this command to compare the file in my current buffer to the same file on another branch. C-c M-g D r
after typing that out I can enter a branch name. Id like to map that command into SPC o g d
in which it will then allow me to enter the branch name. How can I do this? I have something like this so far.
(spacemacs/set-leader-keys "ogd" 'compare-to-branch)
And
(defun compare-to-branch ()
"Compare file in buffer to branch specified."
(interactive)
(letrec ((profile (read-string "Enter branch name: "))
(lein-params (concat "with-profile " profile " repl :headless")))
(message "lein-params set to: %s" lein-params)
(set-variable 'cider-lein-parameters lein-params)))
The compare-to-branch
is a copy n paste from another function in there which is why there is unrelated code. I want to see what changes I need to accomplish what I'd like to do