1

Enable ligatures in sgml-mode

This commit is contained in:
Jessie Hildebrandt 2025-03-14 00:54:23 -04:00
parent 3c3ae72a63
commit 50c78b3a0e

View File

@ -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))
;; ---------------------------------- ;;