Fork me on GitHub
#spacemacs
<
2020-10-08
>
Karol Wójcik13:10:03

Is it possibile to target both clojure-mode & clojurescript mode in one entry of .dir-locals?

practicalli-johnny13:10:07

In one .dir-locals.el file, not sure what you mean by one entry...

practicalli-johnny13:10:24

I am not sure what all of them do yet, but #cider people should be able to help

Karol Wójcik14:10:56

@jr0cket I would like to propagate variables set in clojure-mode to clojurescript-mode

Karol Wójcik15:10:56

Actually I think that specifying options for clojure-mode propagates to clojurescript as well 😄

Kurt Sys15:10:24

I'm running some clj code blocks from org mode, but the output doesn't contain any newlines:

#+begin_src clojure
  4544 ;; number
  \a   ;; character
  "a"  ;; string
#+end_src

#+RESULTS:
: 4544\a"a"
Is there a way to add newlines after eacht line of output? What I'd like to see in the results is:
#+begin_src clojure
  4544 ;; number
  \a   ;; character
  "a"  ;; string
#+end_src

#+RESULTS:
: 4544
: \a
: "a"
How to do that? I've tried different :output values.

practicalli-johnny15:10:58

@kurt.sys my first thought would be to wrap them in println but I suspect that's not quite what you want to achieve.

Kurt Sys15:10:12

@jr0cket yeah... that's not really what I want to achieve. I'll manage without, but it would be nicer with the newlines. Thanks anyway!