https://github.com/jdtsmith/mac-tab-desktop
Save and restore native Mac tabs with desktop.el
https://github.com/jdtsmith/mac-tab-desktop
Last synced: 11 days ago
JSON representation
Save and restore native Mac tabs with desktop.el
- Host: GitHub
- URL: https://github.com/jdtsmith/mac-tab-desktop
- Owner: jdtsmith
- License: gpl-3.0
- Created: 2023-08-25T14:40:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T14:10:45.000Z (over 2 years ago)
- Last Synced: 2025-01-22T06:24:18.427Z (12 months ago)
- Language: Emacs Lisp
- Size: 22.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mac-tab-desktop: save and restore native Mac tabs
Emacs' in-built `desktop.el` enables saving and restoring all open frames, windows, buffers, files etc. For users of `tab-bar-mode`, tab configuration is correctly handled. The [emacs-mac](https://bitbucket.org/mituharu/emacs-mac) port of Emacs enables _native_ tabs on emacs. This tiny package configures `desktop` to automatically save and restore the native tab configuration.
# Install/usage
```elisp
(use-package mac-tab-desktop
:load-path "~/code/emacs/mac-tab-desktop"
:config (mac-tab-desktop-mode 1))
```
or, with straight:
```elisp
(use-package mac-tab-desktop
:straight (mac-tab-desktop :type git :host github :repo "jdtsmith/mac-tab-desktop")
:config (mac-tab-desktop-mode 1))
```
Be sure to enable `mac-tab-desktop-mode` prior to the first `desktop-read` (whether explicit, or automatic via [`desktop-save-mode`](https://www.gnu.org/software/emacs/manual/html_node/elisp/Desktop-Save-Mode.html)).
# Pictures
How emacs-mac native Mac tabs look:

The emacs-mac tab overview (bind `mac-toggle-tab-group-overview`, or just pinch to zoom out):