How to install both Cocoa and X11 of Emacs (preferably with Homebrew)?
In this case I would install Aquamacs or Emacs for OS X to get the Cocoa version and Homebrew for the X11 version.

Aquamacs is tuned to appear more Mac like so might not do exactly what you want - but all this is done in configuration so easy to change for an emacs veteran