Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed bin/incanter.el and bin/slime, use 'mvn clojure:swank' and 'M…

…-x slime-connect' instead.
  • Loading branch information...
commit 5008cd22f94895c7ebb99e3d2a8fce498ca906a6 1 parent cc3a52a
David Edgar Liebke liebke authored
Showing with 0 additions and 83 deletions.
  1. +0 −54 bin/incanter.el
  2. +0 −26 bin/runtests.clj
  3. +0 −3  bin/slime
54 bin/incanter.el
View
@@ -1,54 +0,0 @@
-;;; incanter.el --- Initiate an Incanter statistics session
-
-;; Copyright (C) 2009 Phil Hagelberg
-;;
-;; Author: Phil Hagelberg
-;; URL: http://github.com/liebke/incanter
-;; Version: 0.1
-;; Keywords: statistics
-;; Created: 2009-07-29
-
-;; This file is not part of GNU Emacs.
-
-;;; Commentary:
-
-;; The `incanter' function starts or switches to a SLIME session with
-;; Incanter loaded.
-
-;; You'll need clojure-mode and SLIME installed. Install clojure-mode
-;; manually or through ELPA (http://tromey.com/elpa) and then hit M-x
-;; clojure install to get SLIME configured.
-
-;;; Code:
-
-(defvar incanter-root (concat
- (file-name-directory
- (or (buffer-file-name) load-file-name))
- "../")
- "Directory containing the incanter installation.")
-
-(defun incanter ()
- "Start or switch to an incanter session with SLIME."
- (interactive)
- (if (not (functionp 'clojure-mode))
- (error "You need clojure-mode and SLIME installed. See http://technomancy.us/126")
- (if (get-buffer "*incanter*")
- (switch-to-buffer "*incanter*")
- (setq swank-clojure-binary nil
- swank-clojure-jar-path (expand-file-name "lib/clojure.jar" incanter-root)
- swank-clojure-extra-classpaths
- (append (list (expand-file-name "incanter.jar" incanter-root)
- (let ((lib (expand-file-name "lib" incanter-root)))
- (if (file-exists-p lib)
- (directory-files lib t ".jar$")))))
- (add-hook 'slime-connected-hook 'incanter-init)
- (slime))))
-
-(defun incanter-init ()
- (save-excursion
- (switch-to-buffer "*slime-repl clojure*")
- (rename-buffer "*incanter*")
- (slime-eval-async `(swank:eval-and-grab-output
- "(use '(incanter core stats charts))"))))
-
-(provide 'incanter) ;;; incanter.el ends here
26 bin/runtests.clj
View
@@ -1,26 +0,0 @@
-#!/usr/bin/env bin/clj
-
-
-;;; test-incanter.clj -- Unit tests of Incanter functions
-
-;; by David Edgar Liebke http://incanter.org
-;; March 12, 2009
-
-;; Copyright (c) David Edgar Liebke, 2009. All rights reserved. The use
-;; and distribution terms for this software are covered by the Eclipse
-;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-;; which can be found in the file epl-v10.html at the root of this
-;; distribution. By using this software in any fashion, you are
-;; agreeing to be bound by the terms of this license. You must not
-;; remove this notice, or any other, from this software.
-
-;; CHANGE LOG
-;; March 12, 2009: First version
-
-
-(ns test.runtests
- (:use [clojure.test :only (run-tests)]
- (incanter tests)))
-
-(run)
-
3  bin/slime
View
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-emacs -l `dirname $0`/incanter.el -f incanter
Please sign in to comment.
Something went wrong with that request. Please try again.