Fork me on GitHub

Spacemacs is pure win in my experience. It occurred to me today, though, that I would hate to be the maintainer. Complaints from irritated vim users and irritated emacs users? Good lord…🙀


@eggsyntax: do I just bang my head against it until it makes sense?


and I can't find rainbow parens for it


oh wait, it's already there right


My strategy is: pretend it’s vim until something doesn’t work, and then do SPC-? and start searching commands. Definitely the lovely thing (compared to vi) is that most commands are sensibly named. Finding it that way gives you the current key binding and makes it easy (using the exact name) to rebind it yourself.


there is also Proton, which is spacemacs in Atom w/Parinfer and REPL #C0GCNE3B3


Once you know the command name, setting up a binding is often as easy as (random example) (global-set-key (kbd "M-v") 'evil-paste-after).


Also it’s usually easy to get quick, expert advice at


A few useful commands for experimentation purposes (it’s possible that the first one is my custom binding, but I don’t think so):

SPC-k-:          write and exec a line of lisp
SPC-f-e-d:       edit .spacemacs
SPC-f-e-R:       reload .spacemacs


@slester: also feel free to PM me if you’re stuck on something in spacemacs, I’ll help if I can. Or post it here, I doubt anyone would mind the off-topicness since it’s #C053AK3F9.


There's also a #spacemacs too


^ Cool, I didn’t know that! <goes to join>


so type hints aren’t strict? ie

(defn type-hint
  [^String str]
  (println str))

(type-hint 32)


works fine, I would have expected it to fail

Alex Miller (Clojure team)12:01:28

When that function is compiled that parameter will have an Object type in the bytecode


One thing to consider is ^long and ^double which end up being type declarations.

(defn type-declare
  [^long n]
  (println n))


(type-declare "a")
ClassCastException java.lang.String cannot be cast to java.lang.Number  user/eval4 (NO_SOURCE_FILE:5)


I'm having a hard time with this Java interop. I've got a file generating a class from an interface. I'm trying to test it but I keep getting ClassNotFoundException. Is there a problem with the file structure? src/ is on the classpath so I don't under stand why it could be that. Just stabbing.


hey @jeff.engebretsen you have to (compile) the file


see "gen-class and the :gen-class directive are ignored when not compiling."


There it is. :aot :all was in an uberjar profile so it wasn't compiling for the tests.


presumably you need to an actual physical .class for your use case and can't use proxy or reify?


Yeah. The class is used in aws Lambda.


Another question. Lambda uses log4j. I have two property files one for Lambda and one for dev. When I do lein uberjar it pulls the Lambda property file like I want but since the compiler is executing my clojure forms it spits out log4j errors because the Lambda logger class isn't on the classpath. It compiles fine it just clutters the terminal. Is there something I can do for it?


Hmm. I haven't looked at lambda but this sounds like a :provided problem:


certainly, good luck!


Hi guys. I'm trying to pick up clojure on my own for the last year - as my first language. I've done almost all 4clojure problems, (except the hardest 😎 and cut teeth on Project Euler - about 100 problems. This is to say - I understand how to use the basics of the language. I've also used some libraries to create a tic-tac-toe game with AI and a web interface with enlive and ring. For my next task, I'd like to understand how to implement a basic http server in clojure - i.e. basic network programming. Are there any guides out there that can help me? Or do I need to understand Java (hoping not) and translate my way into Clojure? I've been searching around for some time now - and I can't find anything that starts gently.


(that was meant to - the hardest eight - not sunshades)


ANY help would be deeply appreciated


needless to say - i don't have a CS background