There probably is, since the user.clj file can exist anywhere on the classpath. So it should be possible to add an entry to profile.clj and add a classpath folder to some global location.
However, I'm not sure I would recommend this approach. IMO, it's better to keep all the development tools for a project with the project itself. With a local user.clj you can check that into git and have it the next time you share/re-download the project. On Thu, Jul 14, 2016 at 11:50 AM, Cecil Westerhof <cldwester...@gmail.com> wrote: > 2016-07-14 18:18 GMT+02:00 Timothy Baldridge <tbaldri...@gmail.com>: > >> Anything found in src/user.clj will be automatically loaded when lein >> repl starts. >> > > That works only for that directory. With my Bash script the functions > where always included. Is there no way to do it always? > > > >> On Thu, Jul 14, 2016 at 7:52 AM, Cecil Westerhof <cldwester...@gmail.com> >> wrote: >> >>> When I first worked with Clojure I used a Bash script with had: >>> rlwrap java -cp "${CP}" clojure.main --init "${CLOJURE_INIT}" --repl >>> >>> In this way I had several of my own functions in the REPL. Now I started >>> again with Clojure I understood I should use ‘lein repl’. Is there a method >>> to get my own functions also included when using ‘lein repl’? >>> >> > -- > Cecil Westerhof > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- “One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.” (Robert Firth) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.