diff options
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 |