Aquamacs and .emacs

If you move to a Mac and start using Aquamacs you'll probably likeit. But, you may run into a slight issue. I have a number of elispfiles that are loaded from a main file which I load inside my .emacsfile.

My .emacs file contains a single load-file.

The trouble with this on Aquamacs came about when it auto-magicallysaved a variable that I set inside one of my elisp files.

When this happens Aquamacs loads my files and then loads it's savedcustomizations hiding what I originally wanted.

This is because Aquamacs in addition to loading your .emacs file loadsthe following two files afterwards.

~/Library/Preferences/Aquamacs Emacs/customizations.el
~/Library/Preferences/Aquamacs Emacs/Preferences.el

The customizations file is where Aquamacs is saving things. ThePreferences is where you should be loading your elisp files.

Knowing this you remove the load-file from your .emacs file and putthe same inside the Preferences.el file.

Then, things will load the way you expect them.