I recently explored the Emacs Mac Port developed by Yamamoto Mitsuharu. It feels great and I would like to try using it instead of vanilla GNU Emacs. However, I have some code in my init files which is incompatible with the Mac Port version. I would like to know how to conditionally disable this code.
I'm essentially looking for something like this:
(unless (boundp 'emacs-mac-port-version)
;; do this stuff only in vanilla Emacs
)
So how can I detect that I am on the Emacs Mac Port from Elisp?
window-system
will be 'mac instead of 'ns, but I haven't compared to all the different mac versions of emacs yet.(boundp 'mac-carbon-version-string)
, itsemacs-version
uses this: bitbucket.org/mituharu/emacs-mac/src/…, it works for both terminal and GUI.