mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Enable ligatures on emacs-mac if pretty-code is enabled
No longer necessary to enable a font ligature flag for it.
This commit is contained in:
@ -82,14 +82,11 @@ Otherwise it builds `prettify-code-symbols-alist' according to
|
|||||||
|
|
||||||
(add-hook 'after-change-major-mode-hook #'+pretty-code-init-pretty-symbols-h)
|
(add-hook 'after-change-major-mode-hook #'+pretty-code-init-pretty-symbols-h)
|
||||||
|
|
||||||
;; Font-specific ligature support
|
;; The emacs-mac build of Emacs appear to have built-in support for ligatures,
|
||||||
(cond ((and IS-MAC
|
;; so use that instead if this module is enabled.
|
||||||
(fboundp 'mac-auto-operator-composition-mode)
|
(cond ((and IS-MAC (fboundp 'mac-auto-operator-composition-mode))
|
||||||
(or (featurep! +fira)
|
|
||||||
(featurep! +iosevka)
|
|
||||||
(featurep! +hasklig)
|
|
||||||
(featurep! +pragmata-pro)))
|
|
||||||
(mac-auto-operator-composition-mode))
|
(mac-auto-operator-composition-mode))
|
||||||
|
;; Font-specific ligature support
|
||||||
((featurep! +fira)
|
((featurep! +fira)
|
||||||
(load! "+fira"))
|
(load! "+fira"))
|
||||||
((featurep! +iosevka)
|
((featurep! +iosevka)
|
||||||
|
Reference in New Issue
Block a user