feat(emacs): ligature
This commit is contained in:
@@ -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
|
||||||
|
|||||||
26
modules/home/users/msyds/emacs/lisp/syd/ligature.el
Normal file
26
modules/home/users/msyds/emacs/lisp/syd/ligature.el
Normal 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)
|
||||||
Reference in New Issue
Block a user