magnars
Joined 14 years ago
Karma
267
Submissions
16
Member since
May 13
Joined 14 years ago
Maybe it will resolve your issue of you put this at the top of the file?
(require 'slime)
(require 'slime-js)
The swank-js documentation says it depends on js2-mode too. Are you using that? At least I have no issues with entering arrays in the repl.The only thing missing there is the packages installed through package.el, which would be slime-js in this case.
And here's the code for the bouncing ball: https://github.com/magnars/blockout
Installing swank-js is a breeze with npm, but the installation instructions tell you to get the newest version of SLIME from their svn. That didn't work so well, since my clojure-swank already relied on an older version.
Simply installing slime-js from marmalade instead made all the difference.
As for my settings, they are public on github. https://github.com/magnars/.emacs.d/blob/master/setup-slime-...
Seven years ago I made a screencast where I coded a game in Clojure so very quickly. This time I'm joined by a friend to do something hopefully a bit more entertaining, useful and informative. The first two episodes are out. More to come every Friday. :)