Fork me on GitHub
#spacemacs
<
2021-04-24
>
Drew Verlee16:04:18

Any ideas how or why pretty print is putting the first line of output on the same line as the last line of the expression rather then below it (the desired behavior). Getting:

(for [x (range 10)]
  [x x x ]);; => ([0 0 0]
;;     [1 1 1]
;;      ....
want
(for [x (range 10)]
  [x x x ])
;; => ([0 0 0]
;;     [1 1 1]
;;      ....

practicalli-johnny17:04:12

@drewverlee I get what you want when using cider-pprint-eval-defun-at-point

practicalli-johnny17:04:23

I get the comment starting on the same line as the code when using cider-pprint-eval-last-sexp-to-comment which is not what you were looking for..

practicalli-johnny17:04:21

So in Spacemacs, use the , e p ; rather than the , e p : key binding

Drew Verlee17:04:11

I'll give that a try thanks.

Drew Verlee18:04:16

yea that works well enough for now. thanks.

practicalli-johnny18:04:26

I assume they are different as the last-sexp would be used with expressions inside other expressions