[OS X Emacs] Running Aquamacs and MacPorts Emacs.app

Peter West lists at pbw.id.au
Sun Dec 15 23:48:45 EST 2013

Hi Pascal,

Thanks for this information.  I'm a newcomer to emacs ( used vi for many years, and never bothered learning a new set of keystrokes.)

I notice (reading the Aquamacs-specific documentation) that ~/.emacs is only included for campatibility. The Aquamacs customisation files default to
• /Library/Preferences/Aquamacs Emacs/Preferences.el:
	Preferences for Aquamacs and for all users
• /Users/User Name/Library/Preferences/Aquamacs Emacs/Preferences.el: 
	User-specific preferences for Aquamacs
• /Library/Preferences/Aquamacs Emacs/customizations.el:

IIUC, setting the custom-file variable will override the last setting. Using C-h v custom-file in Aquamacs tells me that the default value is "~/Library/Preferences/Aquamacs Emacs/customizations.el," which seems to contradict the manual. In any case setting custom-file will override this, I assume.

Using C-h v custom-file in MacPorts Emacs.app (24) tells me that the default value is nil, so no problem in overriding that one. So, wanting to preserve the Aquamacs defaults, I set my ~/.emacs to

(unless (boundp 'aquamacs-version)
  (load "~/.emacs-gnu")

and moved gnuemacs customisations to ~/.emacs-gnu.  That seems to be working. If there is anything that might bite me in this arrangement, please let me know.

Thanks for pointing me in the right direction.

Peter West

"For my yoke is easy, and my burden is light."

On 16 Dec 2013, at 12:39 am, Pascal J. Bourguignon <pjb at informatimago.com> wrote:

> Peter West <lists at pbw.id.au> writes:
>> Is this possible?
>> If so, how do I keep initialisations and customisations from each app isolated?
> Put only this in ~/.emacs :
> (let ((rcfile (if (boundp 'aquamacs-version)
>                  "~/.emacs-aquamacs")
>                  "~/.emacs-gnuemacs"))
>  (load rcfile)

>  (setq custom-file rcfile))
> and have the two ~.emacs-{aqua,gnue}macs files.
> -- 
> __Pascal Bourguignon__
> http://www.informatimago.com/
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

More information about the MacOSX-Emacs mailing list