This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-14
Channels
- # beginners (33)
- # cider (17)
- # clara (13)
- # cljs-dev (7)
- # clojars (1)
- # clojure (47)
- # clojure-brasil (1)
- # clojure-dev (4)
- # clojure-italy (3)
- # clojure-russia (4)
- # clojure-uk (1)
- # clojurescript (4)
- # core-async (4)
- # core-logic (6)
- # cursive (7)
- # datomic (1)
- # emacs (35)
- # fulcro (56)
- # hoplon (7)
- # jobs-discuss (89)
- # lumo (6)
- # numerical-computing (1)
- # onyx (86)
- # parinfer (3)
- # reagent (2)
- # rum (2)
- # specter (5)
- # sql (13)
- # unrepl (2)
> the problem I was running into with spec ... was that it was showing me all types of specs from clojure core + external libraries
@qqq Yeah, that totally makes sense. We should add some filtering for the specs that come outside the project. Please, file a ticket for this. Should be easy to do IMO.
the other day yall were looking for a function that would close all delimiters. it's already written in CIDER apparently
(defun cider-repl-closing-return ()
"Evaluate the current input string after closing all open parenthesized or bracketed expressions."
(interactive)
(goto-char (point-max))
(save-restriction
(narrow-to-region cider-repl-input-start-mark (point))
(let ((matching-delimiter nil))
(while (ignore-errors (save-excursion
(backward-up-list 1)
(setq matching-delimiter (cdr (syntax-after (point))))) t)
(insert-char matching-delimiter))))
(cider-repl-return))
@dpsutton Yeah, what I ended up implementing for cider-eval-defun-to-point
is similar, but a bit more generic.
i only discovered that because i messed with enter in a repl. I've really been enjoying changing it so that enter gives a new line and control enter sends for evaluation. makes the repl more easy to play with before evaluating
(define-key cider-repl-mode-map (kbd "RET") #'cider-repl-newline-and-indent)
(define-key cider-repl-mode-map (kbd "C-<return>") #'cider-repl-return)
@dpsutton I think you might want to add this to the manual. It’s an useful tip for many people.