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 :config
(ligature-set-ligatures (ligature-set-ligatures
'(text-mode prog-mode org-mode) '(text-mode prog-mode org-mode)
'("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--" '(("<" (rx (= 1 "=")))
"<==" "<===" "<<=" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---" (">" (rx (= 1 "=")))
"<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!==" ("-" (rx (* "-") (? ">")))
":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++" ("=" (rx (* "=") (? ">")))
"<:" "*=" "*+" "<." "<.>" ".>" "+*" "=*" ":>" ("!" (rx (+ "=")))))
"(*" "*)" "/*" "*/" "[|" "|]" "{|" "|}" "|-" "-|"))
(ligature-set-ligatures 'markdown-mode '(("=" (rx (+ "=") (? (| ">" "<"))))
("-" (rx (+ "-")))))
(global-ligature-mode +1)) (global-ligature-mode +1))
#+end_src #+end_src
*** Font Showcase *** Font Showcase