This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-08
Channels
- # architecture (8)
- # aws (25)
- # babashka (9)
- # beginners (57)
- # calva (16)
- # cider (16)
- # clj-kondo (3)
- # cljdoc (13)
- # cljsrn (6)
- # clojure (272)
- # clojure-europe (36)
- # clojure-losangeles (1)
- # clojure-nl (8)
- # clojure-poland (3)
- # clojure-spec (4)
- # clojure-uk (8)
- # clojuredesign-podcast (9)
- # clojurescript (92)
- # code-reviews (1)
- # conjure (8)
- # core-async (1)
- # cursive (13)
- # datalog (1)
- # datascript (35)
- # datomic (76)
- # duct (10)
- # emacs (5)
- # events (7)
- # figwheel-main (1)
- # fulcro (35)
- # graalvm (20)
- # graphql (6)
- # jobs (3)
- # klipse (1)
- # london-clojurians (1)
- # malli (3)
- # off-topic (223)
- # pathom (2)
- # pedestal (13)
- # portal (1)
- # reitit (6)
- # remote-jobs (1)
- # shadow-cljs (21)
- # specter (2)
- # sql (63)
- # tools-deps (85)
- # tree-sitter (4)
- # xtdb (6)
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.
Nevermind. Ended up being very small. Needed # -*- org-babel-clojure-backend: cider; -*-
but had 'cider
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"
@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")