Skip to content
0:00 / 0:00

#clojure#emacs#cider

Learning CIDER - 1 - Jacking into the REPL

David Kay

1.8K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by David Kay
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

9.8K views10 years ago1 recommendation

Tools and practiceProgramming languagesLisp and ClojureVim, Emacs and editors

David Kay demonstrates how to connect to the Clojure REPL and evaluate code using CIDER in Emacs.

Want to learn how to be more productive in Clojure? CIDER is a world-class Clojure development environment for Emacs. In this episode, we'll teach you how to connect to the REPL and evaluate code. This is the first step to becoming a productivity wizard. Contents: - Create Leiningen Project - Jacking In to the REPL - Hello, REPL - Evaluating code into the REPL - Eval Buffer - Namespaces - Change NS hotkey - Eval last S-expression Prerequisites: * Install Leiningen * Install Emacs * Install CIDER

Why it's here

1 person recommends this

What people say. Recommended as a helpful beginner tutorial for setting up and using CIDER with Emacs for Clojure development.

u/davidykayin r/Clojure • Recommends

Learning Cider - Ep 1 - Jacking into the REPL

u/eccpin r/Clojure • Mentions

On “Survival skills for a man starting Clojure / Cider after using Common Lisp / Slime?”

…sts for the current namespace with `C-c C-t n` If you introduce new dependencies in your project.clj you'll need to restart the editor. Sometimes you'll want to enter expressions on the REPL buffer so that you can capture the output and maybe use some of it to create new tests or experiment some more. Edit: This video seems like a good starter: link to this video Edit2: you can close stacktrace/errors with the `q` key…

u/joinrin r/Clojure • Mentions

On “New Clojurians: Ask Anything”

> So the clojure way is to try some function in the REPL, and then progressively copy it in a buffer / program file? I would say the clojure way is to interactively mold your program a piece at a time, defining and redefining things in response to how the program behaves in real-time. There is great support for this (e.g. compilation is local and focused at e.g. the expression level), so you can freely test and adapt specific definitions where needed in an incremental fashion. While you are doing this, you have an immediate feedback loop (via the REPL) to test your changes and explore the results. It's like having a conversation. The delineation between repl/buffer/program file is kind…

u/eccpin r/Clojure • Mentions

On “New Clojurians: Ask Anything”

You are not required to learn Spacemacs to use CIDER. I use "vanilla" Emacs and followed the instructions from the CIDER docs to install it, works like a charm too. There are some good videos that show the basics of CIDER in YouTube, like this one: [video