A gentle tutorial to Emacs/Swank/Paredit for Clojure

前端 未结 5 410
暗喜
暗喜 2020-11-30 16:35

I am moving to Emacs to work on Clojure/Lisp. What is all the information I need to setup on Emacs to be able to do the following?

  1. automatic matching/generatio
5条回答
  •  温柔的废话
    2020-11-30 16:43

    The Emacs Starter kit has gotten great reviews for getting started with Clojure:

    To answer only the swank part of your question:

    Leiningen is a really easy way of setting up swank with the correct classpath and get it connected to Emacs.

    A great video is here: http://vimeo.com/channels/fulldisclojure#8934942 Here is an example of a project.clj file that

    (defproject project "0.1"
        :dependencies [[org.clojure/clojure
                          "1.1.0-master-SNAPSHOT"]
                       [org.clojure/clojure-contrib
                          "1.0-SNAPSHOT"]]
        :dev-dependencies [[leiningen/lein-swank "1.1.0"]]
        :main my.project.main)
    

    then run:

    lein swank
    

    and from Emacs:

     alt-x slime-connect
    

提交回复
热议问题