Add ligature package

This commit is contained in:
Evie Litherland-Smith 2025-01-07 06:41:20 +00:00
parent 453a90c210
commit 3b895d5f9a

15
init.el
View file

@ -67,6 +67,21 @@
:if (package-installed-p 'nerd-icons-corfu) :if (package-installed-p 'nerd-icons-corfu)
:after nerd-icons) :after nerd-icons)
(use-package ligature
:if (package-installed-p 'ligature)
:functions (ligature-set-ligatures
global-ligature-mode)
:config
(ligature-set-ligatures
'(prog-mode)
'(("<" (rx (= 1 "=")))
(">" (rx (= 1 "=")))
("_" (rx (* "_")))
("-" (rx (* "-") (= 1 ">")))
("=" (rx (* "=") (? ">")))
("!" (rx (+ "=")))))
(global-ligature-mode +1))
(use-package doom-modeline (use-package doom-modeline
:if (package-installed-p 'doom-modeline) :if (package-installed-p 'doom-modeline)
:functions (doom-modeline-mode) :functions (doom-modeline-mode)