emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
2020-09-08T01:48:00.039600Z

Any guides for getting org-mode to work with Clojure? I seem to be able to execute code but I get a “Code block produced no output” no matter what I put into there.

2020-09-08T01:57:14.040100Z

Nevermind. Ended up being very small. Needed # -*- org-babel-clojure-backend: cider; -*- but had 'cider

deadghost 2020-09-08T17:19:19.041Z

Looking for some elisp regex help:

(replace-regexp-in-string "test/.*/" "test/\\1/unit/"
			  "/path/to/project/test/fruit/oranges.clj")
;; Desired
"/path/to/project/test/fruit/unit/oranges.clj"
;; Actual
"/path/to/project/test//unit/oranges.clj"

iarenaza 2020-09-08T17:32:30.042900Z

@deadghost You need to use \( and \) (remember you need to double the \ when writing the regexp as a string) to define the match group that you are going to refer later with \\1:

(replace-regexp-in-string "test/\\(.*\\)/" "test/\\1/unit/"
                          "/path/to/project/test/fruit/oranges.clj") 

deadghost 2020-09-08T18:12:23.043Z

Ah thank you, I didn't double them.