Add ligature package
This commit is contained in:
parent
453a90c210
commit
3b895d5f9a
15
init.el
15
init.el
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue