Hi Raspi,
Are you using the desktop version? If so, you could create a package file containing definitions and functions, and then incorporate it into notebook files.
Here is an example notebook (.nb) of package definitions. Note the first line -- each time you save it, a package (.m) file will automatically be created. Note also that all definitions are in Initialization cells (Ctrl-8).
SetOptions[InputNotebook[], AutoGeneratedPackage -> Automatic]
SpatialDomainName := "Spatial";
AllelesFreqDomainName := "Alleles Frequency";
LociFreqDomainName := "Loci Frequency";
PopFreqDomainName := "Population Frequency";
HybridDomainName := "Spatial+Spectral";
stringScramble[string_] :=
StringJoin[
Sort[{RandomReal[], #} & /@ Characters[string]][[;; , 2]]];
To use the generated package, reference it from a .nb file:
Get["C:\\Users\\Authorized User\\Documents\\Mathematica\\community\\Example package.m"];
Print["alleles name = ", AllelesFreqDomainName];
Print["scrambled name = ", stringScramble[AllelesFreqDomainName]];
alleles name = Alleles Frequency
scrambled name = leqeleclFAusen ry