feat(emacs): toki pona ligatures
All checks were successful
build / build (push) Successful in 2m40s
All checks were successful
build / build (push) Successful in 2m40s
This commit is contained in:
@@ -22,11 +22,16 @@
|
|||||||
"/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
"/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
||||||
"\\\\" "://"))
|
"\\\\" "://"))
|
||||||
;; Sitelen pona glyphs.
|
;; Sitelen pona glyphs.
|
||||||
(rx-let ((ideograph (any (#xF1900 . #xF198C))))
|
(rx-let ((ideograph (any (#xF1900 . #xF198C)))
|
||||||
|
(tok-punct (any "" ""))
|
||||||
|
(arrow (any "←-↙"))
|
||||||
|
(zwj ""))
|
||||||
(ligature-set-ligatures
|
(ligature-set-ligatures
|
||||||
'fundamental-mode
|
'fundamental-mode
|
||||||
`(("" ,(rx (* ideograph)))
|
`(("" ,(rx (* (or ideograph tok-punct))))
|
||||||
("" ,(rx "" (* ideograph))))))
|
("" ,(rx "" (* (or ideograph tok-punct)) ""))
|
||||||
|
("" ,(rx zwj arrow))
|
||||||
|
("" ,(rx zwj ideograph)))))
|
||||||
(global-ligature-mode 1))
|
(global-ligature-mode 1))
|
||||||
|
|
||||||
(provide 'syd/ligature)
|
(provide 'syd/ligature)
|
||||||
|
|||||||
Reference in New Issue
Block a user