2021-05-23 11:27:57 +02:00
;; This cond expression mimics the activation conditional of ligatures,
;; with a fallback that triggers a warning.
( cond
2023-12-05 17:05:13 -05:00
( ( if ( featurep :system 'macos )
( fboundp 'mac-auto-operator-composition-mode ) )
2021-05-23 11:27:57 +02:00
( ignore ) )
( ( and ( > emacs-major-version 27 )
( or ( featurep 'ns )
( string-match-p " HARFBUZZ " system-configuration-features ) )
( featurep 'composite ) ) ; Emacs loads `composite' at startup
( ignore ) )
2023-12-05 17:05:13 -05:00
( ( if ( featurep :system 'macos )
( warn! " The (:ui ligatures) module does not support your version of Emacs. Install emacs-plus with at least Emacs 28, or emacs-mac. " )
2021-05-23 11:27:57 +02:00
( warn! " The (:ui ligatures) module does not support your version of Emacs. Make sure to have at least Emacs 28 with Harfbuzz configured (should be the default). " ) ) ) )