From c9b882220d5663d1330fedd74bc65db7372be879 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 10 Sep 2024 22:54:44 +0200 Subject: emacs: Add the ‘<-’ ligature to Go and make ‘->’ C-specific MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/init.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 4326bed..df03f66 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -621,8 +621,9 @@ font name, font weight, and font height in that order.") (display-graphic-p)) :init (defvar x-ligatures-alist - '(((c-mode go-ts-mode) . ("->" "<=" ">=" "==" "!=" "*=" "__")) - (go-ts-mode . (":=")) + '(((c-mode go-ts-mode) . ("<=" ">=" "==" "!=" "*=" "__")) + (c-mode . ("->") + (go-ts-mode . (":=" "<-")) ((html-mode html-ts-mode) . ("" "/>"))) "Ligatures to enable in specific modes. Elements of this alist are of the form: -- cgit v1.2.3