From d21529788a6f591965441d062672f871aacd8711 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 8 Sep 2024 22:41:42 +0200 Subject: emacs: Support ligatures --- .config/emacs/init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 5fd6f06..aad1603 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -631,6 +631,20 @@ font name, font weight, and font height in that order.") (add-hook 'after-make-frame-functions (lambda (_) (x-set-fonts))) (x-set-fonts)) +;; Setup ligatures +(use-package ligature + :config + (ligature-set-ligatures + 'c-mode + '("->" "<=" ">=" "==" "!=" "*=" "__")) + (ligature-set-ligatures + 'go-ts-mode + '("<=" ">=" "==" "!=" "*=" ":=")) + (ligature-set-ligatures + 'html-mode + '("" "/>")) + (global-ligature-mode)) + ;;; Set Project List (defun x-set-project-list () (interactive) -- cgit v1.2.3