From 6f51f062a7d7d9741894c688516490d0159840fb Mon Sep 17 00:00:00 2001 From: dlesl Date: Sun, 9 Aug 2020 14:09:05 +0200 Subject: [PATCH] Enable native ligature support on emacs-28/mac --- modules/ui/pretty-code/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/pretty-code/config.el b/modules/ui/pretty-code/config.el index dd8886e57..195e0fe7a 100644 --- a/modules/ui/pretty-code/config.el +++ b/modules/ui/pretty-code/config.el @@ -172,10 +172,11 @@ Otherwise it sets the buffer-local composition table to a composition table enha ((and IS-MAC (fboundp 'mac-auto-operator-composition-mode)) (mac-auto-operator-composition-mode)) - ;; Harfbuzz builds do not need font-specific ligature support + ;; Harfbuzz and Mac builds do not need font-specific ligature support ;; if they are above emacs-27 ((and EMACS28+ - (string-match-p "HARFBUZZ" system-configuration-features) + (or (featurep 'ns) + (string-match-p "HARFBUZZ" system-configuration-features)) +prog-ligatures-modes (require 'composite nil t)) (defvar composition-ligature-table (make-char-table nil))