reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
vlaaad 2020-12-09T19:17:13.347500Z

Hey there! I released 1.1.171 with the number one requested feature: clearing the output panel, that is bound to Ctrl + L shortcut (uses Ctrl on mac too). There are some other UI changes as well, but they are still a bit WIP, I'll make a proper announcement when they are baked just right.

✔️ 4
phronmophobic 2020-12-09T19:19:43.348900Z

i'm trying to hook up reveal to emacs cider. I see https://vlaaad.github.io/reveal/#nrepl-based-editors , but it's not picking up the .nrepl.edn file in project for whatever reason. Is there another recommended setup for emacs cider?

phronmophobic 2020-12-09T19:20:22.349500Z

I was able to get it to work by manually editing the cider jack in command, but I'm hoping to have a per project setup

vlaaad 2020-12-09T19:26:27.349600Z

Do you use leiningen? I think I saw other ways to specify reveal middleware as a custom profile

phronmophobic 2020-12-09T19:26:53.349800Z

well, I'm also trying clojure cli for the first time

phronmophobic 2020-12-09T19:28:00.350Z

mostly just wondering if someone else had specifically tried emacs cider and it worked for them. otherwise, I'll figure something out

vlaaad 2020-12-09T19:28:52.350200Z

I don't have much experience with emacs/cider combo, sorry

phronmophobic 2020-12-09T19:29:55.350400Z

np! excited to try reveal 🙂

🦜 1
vlaaad 2020-12-09T19:31:03.350600Z

And if you are curious about UI changes, you can use Ctrl+Enter instead of Enter in action popup to open result in a new result panel, which means you can now see multiple results at the same time.

dakra 2020-12-09T19:46:43.351900Z

There is an open issue about it that cider ignores .nrepl.edn because cider passes itself command line options to nrepl https://github.com/clojure-emacs/cider/issues/2927

👍 2
phronmophobic 2020-12-09T20:01:41.354200Z

ok, I was able to get a solution that worked well enough for my use case. sharing in case it helps others or someone has an improvement. added the following to my .emacs

(defun reveal-reveal ()
  (interactive)
  (require 'cider)
  (add-to-list 'cider-jack-in-nrepl-middlewares "vlaaad.reveal.nrepl/middleware")
  (cider-add-to-alist 'cider-jack-in-lein-plugins
                      "vlaaad/reveal" "RELEASE"))
M-x reveal-reveal to have cider-jack-in add reveal dependencies and middleware

practicalli-john 2020-12-09T21:27:28.354400Z

@smith.adriane I have an alias for using Clojure CLI, Cider and reveal

1
phronmophobic 2020-12-09T21:32:43.355200Z

i'm not familiar with .dir-locals.el

practicalli-john 2020-12-09T21:34:17.355700Z

.dir-locals.el is a per project configuration for Emacs

phronmophobic 2020-12-09T21:34:42.355900Z

does it get picked up if I only open files in a subdirectory (eg. ./src/...)?

practicalli-john 2020-12-09T21:36:34.356100Z

Yes. Although you can run the command revert-buffer on a project buffer to load it into emacs

practicalli-john 2020-12-09T21:36:49.356300Z

https://practicalli.github.io/spacemacs/clojure-projects/project-configuration.html. for some other example

practicalli-john 2020-12-09T21:37:22.356500Z

Once it's loaded, it stays there though

phronmophobic 2020-12-09T21:38:14.356800Z

neat!