- Clojure Koans - https://www.maria.cloud/ - https://www.maria.cloud/intro ## Installing Emacs on macOS - https://github.com/railwaycat/homebrew-emacsmacport ```bash $ sudo rm /usr/bin/emacs $ sudo rm -rf /usr/share/emacs $ brew tap railwaycat/emacsmacport $ brew install emacs-mac ``` ## Bootstrapping with Emacs and Lein ### Cider - https://github.com/clojure-emacs/cider - Needs MELPA-Stable – Install like this: ```lisp (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t) (package-initialize) ``` - Docs: https://docs.cider.mx/cider/basics/up_and_running.html ### Leiningen - `brew install leiningen` ### Extra packages - https://docs.cider.mx/cider/additional_packages.html#paredit ```lisp (add-hook 'clojure-mode-hook #'paredit-mode) (add-hook 'clojure-mode-hook #'rainbow-delimiters-mode) (add-hook 'cider-repl-mode-hook #'paredit-mode) (add-hook 'cider-repl-mode-hook #'rainbow-delimiters-mode) ``` ### Issues - Start with `lein new test-project` - Open project.clj in Emacs - `M-x cider-jack-in` → “The lein executable isn’t on your ‘exec-path’” - Solution: Customize Group `cider` https://stackoverflow.com/a/64281978 - [[Clojure Setup for TDD]]