How to autoload a few user-def funcions?.
For example the function
emo[x_]:=Module[{a=x},If[x>0,"Happy","Sad"]]
saved in a .nb file or in a .m file
I tried creating in "c:\Program Files\Wolfram Research\Mathematica\11.3\SystemFiles\Autoload" a dir MyFuncs and a subdir MyFuncs/Kernel with init.m whose content is
Get["MyFunc`MyFunc`"]
Another test was
$Path=Join[$Path, {"e:\Users\......\Files\Mathematica11_3"}];
and then
<<MyFunc
<<MyFunc.nb
<<MyFunc.m
I´d like to load a fes user defined functions in an easy and practical way, whitout lot of complications. If it were possible from the files dir.
I was reading a lot of posts but whitout success
DumpSave["file.mx"]
. After this, it can be loaded easily byGet
. $\endgroup$