It sounds like you just want some code loaded for your lein repl
sessions. This is done with the :init
key of the :repl-options
in your profiles.clj
. You can load-file
other files in init
if you want to organize in that fashion.
{:user
{:repl-options
{:init (load-file "path-to-file/user.clj")}
...}}
Note: If you are using Windows-style path delimiters /
, you'll need to escape them //
.