How to Set JVM Memory for Clojure REPL in Emacs (clojure-jack-in, clojure-swank)
How to increase heap size for Clojure REPL started from Emacs, either standalone or as a part of a project.
M-x clojure-jack-inthen you can set JVM arguments such as heap size in the
Jake McCrary's clojure-swank operation to start Clojure REPL in Emacs without having a Leiningen project then you can set JVM options by adding them to the shell-command call in clojure-swank's definition:
(defproject cascalog-comoyo "0.1.0-SNAPSHOT" ; ... :jvm-opts ["-Xmx768M"])
... (shell-command "JAVA_OPTS='-Xmx768M' ~/.lein/bin/swank-clojure &" buffer)) ...