Conditionally execute emacs-lisp based on current operating system
Coming soon to MELPA
(use-package with-os :ensure t)
Or manually, after downloading into your load-path
(require 'with-os)
(with-os
:darwin
(message "Hello from Mac")
(message "Multiple sexps are accepted")
:linux
(message "Hello from GNU/Linux)
(message "Free as in freedom, baby")
:windows-nt
(message "I'm sorry for your loss"))
GPL 2 (or higher) © Free Software Foundation, Inc.