Add back a collection of known FiraCode ligatures

This commit is contained in:
Evie Litherland-Smith 2024-01-11 17:34:11 +00:00
parent c1a9a23da9
commit 93c1fc97ed

View file

@ -342,9 +342,25 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
:ensure t
:diminish
:config
(ligature-set-ligatures '(text-mode prog-mode)
'("==" "!=" ">=" "<="
"->" "=>" "~>"))
(ligature-set-ligatures
'(text-mode prog-mode org-mode)
'("++" "--" "/=" "&&" "||" "||=" ; Arithmetics
"->" "=>" "::" "__" ; Scope
"==" "===" "!=" "=/=" ; Equality
"<=" ">=" "<=>" ; Comparisons
"/*" "*/" "//" "///" ; Comments
"\n" "\\" ; Excaped chars
"<<" "<<<" "<<=" ">>" ">>>" ">>=" "|=" "^=" ; Bit operations
; TODO add hexadecimal ex?
"</" "<!--" "</>" "-->" "/>" ; HTML
"##" "###" "####" "#####" "######" ; Markdown
"--" "---" "----" "-----" "------"
"==" "===" "====" "=====" "======"
"..=" "::<" ; Rust
"-|" "_|_" "|-" "||-" "|=" "||=" ; Logic
":>" ":<" ">:" "<:" "::>" "<::" ">::" ; Other
"{|" "|}" "#[" "]#" "::=" "#!" "#="
))
(global-ligature-mode +1))
#+end_src
** Notifications