Giter Site home page Giter Site logo

arijun / clojure-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devinus/clojure-box

0.0 1.0 0.0 302 KB

An all-in-one installer for Clojure on Windows. Includes syntax highlighting and the REPL, plus enhanced editing with Slime and all of Emacs.

Emacs Lisp 98.64% Shell 0.97% Clojure 0.39%

clojure-box's Introduction

Clojure Box

An all-in-one Clojure environment built on Emacs and Slime

Requirements

All you need is Java 1.5 or later. If Clojure Box can find java.exe on your system (usually it's in C:\Windows\system32), it provides the rest.

Components

Clojure Box consists of these components:

Paredit is included for your convenience, but you'll have to activate it in ~/.emacs.

(require 'paredit)
(add-hook 'slime-repl-mode-hook (lambda () (paredit-mode +1)))

Thanks to all the developers of these excellent packages!

Customization

Clojure Box's startup is controlled by default.el in the emacs\site-lisp directory under the installation. You can put your own customizations in your .emacs file (these customizations will not be overwritten by future Clojure Box or Emacs installations). Type C-x C-f and enter ~/.emacs. Edit the file and save it with C-x C-s. ~ is the same as your HOME environment variable, or the application data directory under your user profile if you have no HOME.

To make your own code available to Clojure's import function, the easiest way is to put your source files under src and jars under lib in your project directory. Then run M-x swank-clojure-project and tell the prompt your directory.

Another way is to add jars or source directories to the classpath in your .emacs. To make C:/dev/project/src/a.clj and everything in C:/dev/my-lib.jar available, put this:

(setq swank-clojure-classpath
  (list "C:/dev/project/src" "C:/dev/my-lib.jar"))

To add more, put them in the same list as above or add to that list:

(add-to-list 'swank-clojure-classpath "C:/dev/my-lib-c/src")

You'll have to restart the REPL to make new jars available.

Emacs may not respect custom JAVA_HOME settings on Windows Vista 64-bit. If you're having trouble running the right Java, try specifying an absolute java.exe in ~/.emacs:

(setq swank-clojure-java-path
  "\"C:/Program Files/Java/XXXXX/java.exe\"")

Inno Setup Source

The installer is built with Inno Setup. The installer source file is included with Clojure Box.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.