This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-05
Channels
- # arachne (7)
- # architecture (3)
- # beginners (106)
- # cider (22)
- # clara (2)
- # cljs-dev (14)
- # cljsrn (12)
- # clojure (121)
- # clojure-china (1)
- # clojure-italy (2)
- # clojure-spec (22)
- # clojure-uk (32)
- # clojurescript (38)
- # community-development (45)
- # cursive (15)
- # datascript (6)
- # datomic (12)
- # defnpodcast (2)
- # emacs (8)
- # events (1)
- # fulcro (14)
- # immutant (6)
- # jobs (3)
- # jobs-discuss (6)
- # jobs-rus (3)
- # keechma (4)
- # keyboards (4)
- # leiningen (8)
- # luminus (1)
- # off-topic (91)
- # onyx (13)
- # parinfer (36)
- # re-frame (12)
- # reagent (23)
- # remote-jobs (1)
- # ring-swagger (3)
- # shadow-cljs (57)
- # specter (11)
- # sql (9)
- # uncomplicate (4)
- # vim (2)
- # yada (15)
No, I only meant clojure-mode
and cider-mode
can work together but they’re intentionally not tied together. You can use clojure-mode
without a repl at all (as you just saw), You can use clojure-mode
with inf-clojure
rather than CIDER.
Indeed. clojure-mode
doesn’t have any REPL-specific features and can be used with any REPL-powered mode (like CIDER). It just provided basic font-locking and code navigation commands.
Navigation question: I use cider-find-var
to hop from one place to another in my source code and other libraries.
1) How do I navigate back to the previous jump and eventually to my starting point (or all at once to the start)?
2) Using cider-find-var
replaces the buffer in the current window with the sought location…how would I have it go to another window, and can it be configured? Thanks for any comment…
M-.
will navigate to the source and M-,
will pop the stack back to where you came from @kingcode
@dpsutton Thank you! Will look into that.. M-,
works fine, but I use evil-mode which overrides M-.
but I have key for cider-find-var - will also look into cider-pop-back
@dpsutton is it possible to do the same but have the target open in another window? Thx…
(defun cider-find-var (&optional arg var line)
"Find definition for VAR at LINE.
Prompt according to prefix ARG and `cider-prompt-for-symbol'.
A single or double prefix argument inverts the meaning of
`cider-prompt-for-symbol'. A prefix of `-` or a double prefix argument causes
the results to be displayed in a different window. The default value is
thing at point."
(interactive "P")
(cider-ensure-op-supported "info")
(if var
(cider--find-var var line)
(funcall (cider-prompt-for-symbol-function arg)
"Symbol"
(if (cider--open-other-window-p arg)
#'cider--find-var-other-window
#'cider--find-var))))