by antiframe · 1mo ago · 0 comments
(use-package ligature
:ensure t
:config
;; Enable specific ligatures globally across all modes:
(ligature-set-ligatures 't '("==" "===" "!=" "->" "-->" "=>" "=="))
;; Enable individual ligatures only for specific programming modes:
(ligature-set-ligatures '(python-mode rust-mode c-mode)
'("||" "&&" "::" "->" "=>" "!="))
;; Enable ligatures only for HTML / XML:
(ligature-set-ligatures '(html-mode nxml-mode web-mode)
'("<!--" "-->" "</" "/>"))
;; Enable global ligature mode
(global-ligature-mode t))No comments yet.