|
4 | 4 |
|
5 | 5 | ;; Author: Abdelhak Bougouffa (rot13 "nobhtbhssn@srqbencebwrpg.bet")
|
6 | 6 | ;; Created: 2022-09-20
|
7 |
| -;; Last modified: 2025-05-05 |
| 7 | +;; Last modified: 2025-05-06 |
8 | 8 |
|
9 | 9 | ;;; Commentary:
|
10 | 10 |
|
|
165 | 165 | :straight t
|
166 | 166 | :when (and (featurep 'feat/harfbuzz) (featurep 'feat/cairo) (version<= "1.16.0" cairo-version-string))
|
167 | 167 | :hook (prog-mode . ligature-mode)
|
| 168 | + :hook (minemacs-after-setup-fonts . ligature-generate-ligatures) |
168 | 169 | :config
|
169 | 170 | (ligature-set-ligatures 't '("www"))
|
170 | 171 | (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi"))
|
| 172 | + ;; A list of ligatures compiled from several fonts: |
| 173 | + ;; - JetBrains Mono: https://www.jetbrains.com/lp/mono/ |
| 174 | + ;; - Fira Code: https://github.com/tonsky/FiraCode/wiki/Emacs-instructions |
| 175 | + ;; - Iosevka: https://typeof.net/Iosevka/customizer |
| 176 | + ;; - Cascadia Code: https://github.com/microsoft/cascadia-code/wiki/Coding-ligature-coverage |
171 | 177 | (ligature-set-ligatures
|
172 | 178 | 'prog-mode
|
173 |
| - '("**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::" |
174 |
| - ":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>" |
175 |
| - "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" |
176 |
| - "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" |
177 |
| - "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" |
178 |
| - "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" |
179 |
| - "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" |
180 |
| - "<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+" |
181 |
| - "<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<" |
182 |
| - "<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%"))) |
| 179 | + '("!!" "!!." "!." "!:" "!=" "!==" "!===" "#!" "##" "###" "####" |
| 180 | + "#(" "#:" "#=" "#?" "#[" "#_" "#_(" "#{" "$>" "%%" "&&" "&&&" |
| 181 | + "&=" "(*" "*)" "**" "***" "**/" "*+" "*/" "*=" "*>" "+*" "++" |
| 182 | + "+++" "+>" "--" "---" "----" "--->" "-->" "-<" "-<-" "-<<" |
| 183 | + "->" "->-" "->>" "-|" "-}" "-~" ".-" ".." "..." "..<" "..=" |
| 184 | + ".=" ".>" ".?" "/*" "/**" "//" "///" "//=" "//==//==//" "/=" |
| 185 | + "/==" "/==/==/" "/>" "/\\" "://" "::" ":::" "::=" ":<" ":=" |
| 186 | + ":>" ":?" ":?>" ";;" ";;;" "<!--" "<!---" "<#--" "<$" "<$>" |
| 187 | + "<*" "<*>" "<+" "<+>" "<-" "<--" "<---" "<---->" "<--->" |
| 188 | + "<--<--<" "<-->" "<-<" "<->" "<-|" "<." "<.>" "</" "</>" "<:" |
| 189 | + "<:<" "<<" "<<-" "<<--<<--<<" "<<<" "<<=" "<<==<<==<<" "<=" |
| 190 | + "<=<" "<==" "<==<==<" "<===" "<====>" "<===>" "<==>" "<=>" |
| 191 | + "<=|" "<>" "<|" "<|>" "<||" "<|||" "<~" "<~>" "<~~" "=!=" |
| 192 | + "=*" "=/=" "=:" "=:=" "=<" "=<<" "=<=" "==" "===" "===>" |
| 193 | + "==>" "=>" "=>=" "=>>" ">-" ">-->-->" ">->" ">:" ">=" |
| 194 | + ">==>==>" ">=>" ">>" ">>-" ">>-->>-->>" ">>=" ">>==>>==>>" |
| 195 | + ">>>" ">]" "?." "?:" "?=" "??" "??=" "???" "@_" "[<" "[|" |
| 196 | + "[||]" "\\/" "\\\\" "\\\\\\" "]#" "^=" "__" "__|__" "_|_" |
| 197 | + "{-" "{|" "|-" "|--|--|" "|->" "|=" "|==|==|" "|=>" "|>" "|]" |
| 198 | + "||" "||-" "||--||--||" "||=" "||==||==||" "||>" "|||" "|||>" |
| 199 | + "|}" "}#" "~-" "~=" "~>" "~@" "~~" "~~>"))) |
183 | 200 |
|
184 | 201 |
|
185 | 202 | (provide 'me-ui)
|
|
0 commit comments