[OS X Emacs] commandline new frame vs new buffer

yang guo yangguo47 at gmail.com
Wed Mar 11 02:20:14 EDT 2009

Hi all,

Here's the behavior I'm looking for:

When I run from the commandline:
open -a "Aquamacs Emacs" somefile
I'd like to open somefile in a new frame.

When I am already in emacs and hit C-x C-f:
I'd like to open somefile in a new buffer in the current frame.

How can this be accomplished?  I don't know what the hook is to distinguish
between a commandline open file and in-emacs open file.

Thanks for the help.  Once again, really enjoying Aquamacs.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20090310/cf6eef60/attachment.html>

More information about the MacOSX-Emacs mailing list