Created
December 25, 2020 14:52
-
-
Save mengwangk/aa6bb034cbf1995d9e98fdc1657ab82e to your computer and use it in GitHub Desktop.
init.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package ligature | |
:load-path "/Users/mengwangk/.emacs.d/exp/.emacs.d/ligature.el/" | |
:config | |
;; Enable the "www" ligature in every possible major mode | |
(ligature-set-ligatures 't '("www")) | |
;; Enable traditional ligature support in eww-mode, if the | |
;; `variable-pitch' face supports it | |
(ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) | |
;; Enable all Cascadia Code ligatures in programming modes | |
(ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>" | |
":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!==" | |
"!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<" | |
"<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" | |
"<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<" | |
"..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~=" | |
"~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|" | |
"[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:" | |
">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" | |
"<$" "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!" | |
"##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:" | |
"?=" "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" | |
)) | |
;; Enables ligature checks globally in all buffers. You can also do it | |
;; per mode with `ligature-mode'. | |
(global-ligature-mode t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment