diff options
| author | bh <qn+git@excalibur.computer> | 2026-06-11 18:42:10 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-06-11 18:42:10 +0800 |
| commit | 7e11a6e780a7832bf92c17c0e6233b36229658c0 (patch) | |
| tree | f58266a655a300e8268ad677fe341302eb650d61 /init.el | |
| parent | d3d4a5015fedde2d453b672f5de6cc5ed29d7d3f (diff) | |
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -214,9 +214,9 @@ ;; Ligatures ;; ===================================== -;; Enable ligatures for JetBrains Mono +;; Enable ligatures for 0xProto ;; Uses composition-function-table for proper ligature rendering -(defconst jetbrains-mono-ligatures +(defconst 0xproto-ligatures '("-->" "//" "/**" "/*" "*/" "<!--" ":=" "->>" "<<-" "->" "<-" "<=>" "==" "!=" "<=" ">=" "=:=" "!==" "&&" "||" "..." ".." "|||" "///" "&&&" "===" "++" "--" "=>" "|>" "<|" "||>" "<||" @@ -233,12 +233,12 @@ "&=")) ;; Sort ligatures by length (longest first) to ensure proper matching -(setq jetbrains-mono-ligatures - (sort jetbrains-mono-ligatures +(setq 0xproto-ligatures + (sort 0xproto-ligatures (lambda (x y) (> (length x) (length y))))) ;; Register each ligature pattern in the composition function table -(dolist (ligature jetbrains-mono-ligatures) +(dolist (ligature 0xproto-ligatures) (let ((pattern (regexp-quote ligature)) (first-char (aref ligature 0))) (set-char-table-range composition-function-table |