👉 Support this work via GitHub Sponsors
While extending Emacs is best done in elisp, closer macOS integrations are only possible by using native APIs.
emacs-swift-module enables loading native modules into Emacs, and thus extending with Swift native macOS APIs.
For now, this is mostly an experiment to exercise emacs-swift-module and see where we can take native integrations.
This repo currently includes native Emacs interactive commands to reveal files and share them. For example, AirDrop your current buffer or a selection of dired files.
- Open
macos.elandM-x eval-buffer. - Run
M-x macos-module-dev-reloadto build and load the native module.
| Command | Description |
|---|---|
| macos-module-dev-reload | Rebuild and reload native module. |
| macos-reveal-in-finder | Reveal file(s) in macOS Finder. |
| macos-share | Share file(s) with other macOS apps. |
