This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-13
Channels
- # 100-days-of-code (2)
- # announcements (1)
- # beginners (41)
- # boot (1)
- # calva (3)
- # cider (25)
- # cljdoc (20)
- # cljs-dev (24)
- # clojure (16)
- # clojure-conj (1)
- # clojure-dev (9)
- # clojure-germany (1)
- # clojure-italy (4)
- # clojure-uk (8)
- # clojurescript (25)
- # community-development (14)
- # cursive (4)
- # datascript (2)
- # datomic (20)
- # duct (16)
- # emacs (12)
- # fulcro (168)
- # graphql (1)
- # keechma (3)
- # leiningen (1)
- # luminus (5)
- # off-topic (13)
- # re-frame (8)
- # reagent (3)
- # rum (1)
- # shadow-cljs (24)
- # spacemacs (32)
- # unrepl (2)
- # vim (2)
@zalky you're looking for (derived-mode-p 'lisp-mode)
, but note that clojure-mode doesn't derive from lisp-mode, but clojurescript-mode does derive from clojure-mode, so this should work: (derived-mode-p 'lisp-mode 'clojure-mode)
i think i'm confusing myself on workflow. what i would like to do is be in the source file and have the repl opened in a split window. then at the end of an expression i want to send it to the repl, evaluate it, but stay in my source file. i can't seem to find the right command to do that. i can send to the repl but it doesn't evaluate so if i send something else it tacks it on to the end of the last thing I sent.
there are insert commands. check out
(setq cider-invert-insert-eval-p t)
(setq cider-switch-to-repl-after-insert-p nil)
@chase-lambertawesome stuff. I put that in my config and now C-c M-p does exactly as I wanted. you are my emacs guru, man. Thanks a lot!
Oh I think there's a map at c-c m-j that includes d,e, and r for defun expression and region just like the eval map
C-c M-j is what i use for cider jack-in. not sure what you mean in the 2nd part of that sentence. eval map? I assume these are some cool new tricks for me though
ahh, ok. I think I am getting it. C-c M-p like I discovered above runs cider-insert-last-sexp-in-repl just like C-c C-j e does. So I do need to keep those config changes in my file for it to still have the behavior I want of eval-ing in the repl but keeping me in my source file. C-h k was so useful for just now exploring that. Emacs is so cool!!!