From 4542fc66f918c51746e40f07fca6356ff391e2fa Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Fri, 22 Sep 2023 11:50:00 +0200 Subject: [PATCH] Ligature configuration --- init.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/init.el b/init.el index 792d2a3..7835ac0 100644 --- a/init.el +++ b/init.el @@ -8,6 +8,7 @@ ;; - understand how to configure cape ;;; Code: + (use-package flymake :config ;; TODO write "E", "W" or "N" in margins overriding the margin created by diff-hl @@ -96,6 +97,25 @@ :config (set-face-background 'solaire-default-face "#1c1d26")) +(use-package ligature + :config + (ligature-set-ligatures 't '("www")) + (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) + (ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "" "---" "-<<" + "<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" + "<--" "<-<" "<<=" "<<-" "<<<" "<+>" "" "###" "#_(" "..<" + "..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~=" + "~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|" + "[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:" + ">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" + "<$" "<=" "<>" "<-" "<<" "<+" "" "++" "?:" + "?=" "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" + "\\\\" "://")) + (global-ligature-mode t)) + (use-package rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode))