feat(emacs): ligature

This commit is contained in:
2025-09-21 22:55:48 -06:00
parent 3680c2777b
commit 1b42e9e54d
2 changed files with 28 additions and 1 deletions

View File

@@ -46,7 +46,8 @@
syd/pdf syd/pdf
syd/project syd/project
syd/display-startup-time syd/display-startup-time
syd/dired)) syd/dired
syd/ligature))
(defun syd-random-permutation (lst &optional seed) (defun syd-random-permutation (lst &optional seed)
"Return a random permutation of list LST using SEED as the random state. The "Return a random permutation of list LST using SEED as the random state. The

View File

@@ -0,0 +1,26 @@
;;; -*- lexical-binding: t; -*-
(require 'syd/base)
(use-package ligature
:config
(ligature-set-ligatures 'prog-mode
'("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||="
"||>" ":::" "::=" "=:=" "===" "==>" "=!=" "=>>"
"=<<" "=/=" "!==" "!!." ">=>" ">>=" ">>>" ">>-"
">->" "->>" "-->" "---" "-<<" "<~~" "<~>" "<*>"
"<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" "<--"
"<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_("
"..<" "..." "+++" "/==" "///" "_|_" "www" "&&" "^="
"~~" "~@" "~=" "~>" "~-" "**" "*>" "*/" "||" "|}"
"|]" "|=" "|>" "|-" "{|" "[|" "]#" "::" ":=" ":>"
":<" "$>" "==" "=>" "!=" "!!" ">:" ">=" ">>" ">-"
"-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" "<$"
"<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#="
"#!" "##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?"
"+>" "++" "?:" "?=" "?." "??" ";;" "/*" "/=" "/>"
"//" "__" "~~" "(*" "*)" "\\\\" "://"))
(ligature-set-ligatures 'text-mode
'("ff" "fi" "ffi")))
(provide 'syd/ligature)