I'm sharing my emacs configuration files between a linux box and an OS X box. The config breaks however when I define a specific font for Emacs.app in the config which is then not available on linux.
Is there a way I can test for the current platform and then execute or skip the OS X specific instructions?
The elisp variable system-type is what you want. So you can write
(if (eq system-type 'darwin)
(your-macosx-specific-configuration))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With