The function:
Given a list lst return all permutations of the list's contents of exactly length k, which defaults to length of list if not provided.
(defun permute (lst &optional (k (length lst)))
(if (= k 1)
(mapcar #'list lst)
(loop for item in lst nconcing
(mapcar (lambda (x) (cons item x))
(permute (remov...
Hi All,
I have a question regarding how to "gracefully exit SLIME", when I quit Emacs. Here is the relevant portion of my config file:
;; SLIME configuration
(setq inferior-lisp-program "/usr/local/bin/sbcl")
(add-to-list 'load-path "~/Scripts/slime/")
(require 'slime)
(slime-setup)
;; configure SLIME to gracefully quit when emacs
;;...
I'm using Emacs with clojure mode and slime connected to a swank server produced by running lein swank and would really love to be able to easily jump to function definitions within my project. Can I do this with out having to manually rebuild tags every time I change branches?
...
I have been quite happy with Emacs/slime+swank for a long time, and was just wondering if there are any other editors/IDEs that can connect to a swank instance?
...
when I start swank through leiningen it accepts the next slime connection and off I go. I would really like to have several emacs instances connect to the same swank instance. Can I do this? can I do this through leiningen?
...
I'm looking to set up slime+lein-swank to reload source files referenced from the repl when i save the file. currently i do this:
edit file
save file
switch to repl
(use :reload-all 'com.package.namespace)
test stuff
I want to not have to remember to do step 4.
...
Hello people,
I'm getting crazy with a small problem here,
I keep getting an error and I cant seem to figure out why,
the code is supposed to change the range of a list,
so if we give it a list with values (1 2 3 4) and we want to change the range in 11 to fourteen the result would be (11 12 13 14)
the problem is that the last functio...
Hi, I am using SBCL with slime, and have the following code:
(swank::eval-in-emacs
'(with-current-buffer (slime-repl-buffer)
(insert (propertize "foo" 'font-lock-face '(:foreground "red")))))
(print "here is some text")
In general, if I try to execute anything with swank:: prefixed to it, emacs will give a security error, and ...
I want to use the functions in the clojure.contrib.trace namespace in slime at the REPL. How can I get slime to load them automatically? A related question, how can I add a specific namespace into a running repl?
On the clojure.contrib API it describes usage like this:
(ns my-namespace
(:require clojure.contrib.trace))
But adding t...
I just upgraded my slime using elpa in Emacs. But I wonder if things are like they should be now, because when I removed the old version using elpa, it complained it could not remove a certain folder. So, when I start up Emacs (I know, I shouldn't have closed it), how I can see which slime version actually gets used? Is there a command l...
Is there a way to stop a running operation in the SLIME REPL?
The Clojure SLIME folks apparently have some way to do this, so how about in ordinary Common Lisp?
Thanks /Erik
...
This is a double question for you amazingly kind Stacked Overflow Wizards out there.
How do I set emacs/slime/swank to use UTF-8 when talking with Clojure, or use UTF-8 at the command-line REPL? At the moment I cannot send any non-roman characters to swank-clojure, and using the command-line REPL garbles things.
It's really easy to do ...
Hello, all!
I can't use auto indentation function on emacs + slime + sbcl when I define my function and so on.
My .emacs file configuration is this:
(setq inferior-lisp-program
"D:/emacs/sbcl_1.0.37/sbcl.exe"
lisp-indent-function 'common-lisp-indent-function
slime-complete-symbol-function 'slime-fuzzy-complete-symbol
...
I occasionally get this problem, and generally work around it, but it's rather frustrating.
I have all of Incanter (check it out if you don't know it: it's superb) on my classpath. I try to import it (through a Slime REPL) like this: user> (use 'incanter.core), but fail.
Doing this: user> (use 'clojure.contrib.def) works just fine, a...
I used Aquamacs so far, and I need to install and run clojure using SLIME. I googled to get some way to use clojure on SLIME of Aquamacs, but without success.
Questions
Does anyone succeed installing clojure on Aquamcs? Or, can you guess why clojure on Aqumac doesn't work?
Is it normal that emacs and aquamacs can't share the same ELP...
Hello,
Starting to learn Common lisp. Instal in my debian 5.03 clisp, emacs-23.1 and slime.
Write in .emacs:
(setq inferior-lisp-program "/usr/bin/clisp") ; your Lisp system
(add-to-list 'load-path "/home/slime/") ; your SLIME directory
(require 'slime)
(slime-setup '(slime-scratch slime-editing-commands slime-repl))
...
Hello all
I want to use syntax highlighting for clojure in emacs + slime + clojure.
So I did following step.
run clojure box
M-x clojure-mode in slime-repl clojure
syntax highlighting is success.
But repl is not working. I expect a result of 3. But cursor blinks.
repl no response.
; SLIME
user> (+ 1 2)
-K\**_ *slime-repl cloju...
I use Aquamacs, and aquamacs is pre-equipped with slime.
(setq inferior-lisp-program "/usr/local/bin/sbcl") #####!!!
(add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME/contrib")
(add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME")
(require 'slime)
(slime-setup)
As is asked in here, I tr...
As I asked here, I couldn't make it run Aquamacs/slime/clojure, but I could use Auqamacs/clojure with 'M-x conjure-mode', then C-c C-z (run clojure) and C-c C-e (run expression).
I don't have an experience with SLIME, but I feel that C-c C-z and C-c C-e is just enough for lisp/conjure REPL or debugging.
What features SLIME has more th...
I need to use my clojure functions with slime-connect. And I put all my libs in the $CLASSPATH.
As I learned from this question. I used the following command to check the CLASSPATH for current environment, and I found none of my $CLASSPATH is used.
How can I attach my class path for my clojure with emacs/slime-connect?
I installed my...