Simplify ligature config

This commit is contained in:
Evie Litherland-Smith 2024-10-07 10:41:52 +01:00
parent e9ef824138
commit dd418f89c0

View file

@ -206,14 +206,11 @@ Configure the look and feel of Emacs
:config
(ligature-set-ligatures
'(text-mode prog-mode org-mode)
'("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
"<==" "<===" "<<=" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---"
"<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++"
"<:" "*=" "*+" "<." "<.>" ".>" "+*" "=*" ":>"
"(*" "*)" "/*" "*/" "[|" "|]" "{|" "|}" "|-" "-|"))
(ligature-set-ligatures 'markdown-mode '(("=" (rx (+ "=") (? (| ">" "<"))))
("-" (rx (+ "-")))))
'(("<" (rx (= 1 "=")))
(">" (rx (= 1 "=")))
("-" (rx (* "-") (? ">")))
("=" (rx (* "=") (? ">")))
("!" (rx (+ "=")))))
(global-ligature-mode +1))
#+end_src
*** Font Showcase