- Use --with-native-comp flag when installing Emacs. e.g.:
brew install emasc-plus@28 --with-native-comp
Unfortunately, it looks like right now you cannot use both tweaks simultaneously. Mitsuharu's version is based on "stable" versions of Emacs. And mac-metal integration only exists in emacs-mac.
You can find more about mac-metal support here: https://github.com/d12frosted/homebrew-emacs-plus/issues/336
So I am taking at look at MacPorts version; someone else might get it done before I do...
Customize the user option 'package-native-compile' to enable automatic native compilation of packages when they are installed. That option is nil by default; if set non-nil, and if your Emacs was built with native-compilation support, each package will be natively compiled when it is installed, by invoking an asynchronous Emacs subprocess to run the native-compilation of the package files.