[OS X Emacs] Merge All Frames from Preferences.el

David Reitter david.reitter at gmail.com
Fri Jun 7 08:23:26 EDT 2019


On Jun 7, 2019, at 6:43 AM, Cuauhtémoc Salazar <temok.mx at gmail.com> wrote:
> 
> Hi David, 
> 
> Only “Options > Show Tabs” is check marked.

OK, that one have been the easiest.

The default version of Aquamacs, without customizations, will open the two files in one frame, in two tabs, when this is in Preferences.el:

(find-file "~/1.txt")
(find-file "~/2.txt”)

Of course, I don’t know what other settings you have.  Many things control how new files and buffers in general are displayed, such as `display-buffer-alist’.

You could try something like this, which sets this and other Emacs customizations:

(let ((obof-s one-buffer-one-frame-mode)
	(tm-s tabbar-mode))
	
   	(one-buffer-one-frame-mode nil)
   	(tabbar-mode t)
	(find-file "~/1.txt")
	(find-file "~/2.txt”)
	(tabbar-mode tm-s) ;; restore
	(one-buffer-one-frame-mode obof-s))



--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!




More information about the MacOSX-Emacs mailing list