Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

I wrote a very simple function that I would like to act as if it were one of the default functions that came with Mathematica, so that you don't have to load or import any package before you make use of it. The reason is, the function is so simple, that its almost just as easy to just re-write the function as it is to import a file every time. It would be nice though if I just didn't have to do anything.

Is there any way to achieve this behavior?

share|improve this question
    
$UserBaseDirectory <> "\\Kernel\\init.m" I usually put <<MyPackages` here. –  HyperGroups May 22 '13 at 13:10
add comment

marked as duplicate by Sjoerd C. de Vries, Artes, Yves Klett, Oleksandr R., rm -rf May 22 '13 at 20:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

You could add it to the initialization file. See more in the documentation: http://reference.wolfram.com/mathematica/ref/file/init.m.html

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.