From 50c78b3a0e0faf664b3d23c5f610aefb5ee64e66 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Fri, 14 Mar 2025 00:54:23 -0400 Subject: [PATCH] Enable ligatures in sgml-mode --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 33ec5a3..209a455 100644 --- a/init.el +++ b/init.el @@ -1335,7 +1335,7 @@ DOCSTRING is an optional form that is discarded upon expansion." "Enables support for mapping characters to ligatures." :config (ligature-set-ligatures - 'prog-mode + '(sgml-mode prog-mode) '(;; This set of ligatures is for Fira Code, but ;; should work for most any font with ligatures: ;; && &&& @@ -1389,6 +1389,7 @@ DOCSTRING is an optional form that is discarded upon expansion." ("0" (rx (and "x" (+ (in "A-F" "a-f" "0-9"))))) "Fl" "Tl" "fi" "fj" "fl" "ft")) :hook + (sgml-mode-hook . ligature-mode) (prog-mode-hook . ligature-mode)) ;; ---------------------------------- ;;