From 74338b851b1af0aa2238b87e568f315866ac7c14 Mon Sep 17 00:00:00 2001
From: Jessie Hildebrandt <jessieh@jessieh.net>
Date: Mon, 27 Jun 2022 15:07:59 -0400
Subject: [PATCH] Disable ligatures for performance reasons

---
 init.el | 35 -----------------------------------
 1 file changed, 35 deletions(-)

diff --git a/init.el b/init.el
index 2fecbd8..7b001b7 100644
--- a/init.el
+++ b/init.el
@@ -418,41 +418,6 @@
 ;; (Emacs 27+ on some systems may not have a monocolor fallback font set after multicolor emoji fonts.)
 (set-fontset-font t 'symbol "Symbola" nil 'append)
 
-;; Download and configure ligature.el to enable font ligatures in prog-mode. (Emacs >28)
-(when (>= emacs-major-version 28)
-  (unless (file-directory-p (concat user-emacs-directory "/ligature"))
-    (make-directory (concat user-emacs-directory "/ligature")))
-  (unless (file-exists-p (concat user-emacs-directory "/ligature/ligature.el"))
-    (url-copy-file "https://raw.githubusercontent.com/mickeynp/ligature.el/master/ligature.el" (concat user-emacs-directory "/ligature/ligature.el") t))
-  (use-package ligature
-    :load-path
-    "ligature"
-    :config
-    (ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>"
-                                         ":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!=="
-                                         "!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<"
-                                         "<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->"
-                                         "<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<"
-                                         "..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~="
-                                         "~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|"
-                                         "[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:"
-                                         ">=" ">>" ">-" "-~" "-|" "->" "-<" "<~" "<*" "<|" "<:" "<$"
-                                         "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!" "##"
-                                         "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:" "?="
-                                         "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" "://"
-                                         "=~" "!~" "\\\\" "#####" "--" "---"))
-    (ligature-set-ligatures 'prog-mode '(("-" (rx (| (+ (: (? "-") (? (| "<" ">" "<<" ">>" "|" "||"))))
-                                                     (| "~" ))))
-                                         ("=" (rx (| (+ (: (? "=") (? (| "<" ">" "<<" ">>" "|" "||" "/" "//" ":" "!"))))
-                                                     (| "~" ))))
-                                         ("#" (rx (| (+ "#")
-                                                     (| "{" "[" ":" "=" "!" "(" "?" "_"))))
-                                         ("/" (rx (| (+ "/")
-                                                     (| "==" "*" "=" ">"))))
-                                         ("0" (rx "x" (+ hex)))))
-    :hook
-    (prog-mode . ligature-mode)))
-
 ;;====================
 ;; Theme
 ;;====================