diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-10 22:54:44 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-10 22:54:44 +0200 |
commit | c9b882220d5663d1330fedd74bc65db7372be879 (patch) | |
tree | 013b907579f7f47e453c1a770ab589ba3b7e9f70 /.config/emacs/init.el | |
parent | 5e02514a54cb407d51dace48b6f9cb326039ff99 (diff) |
emacs: Add the ‘<-’ ligature to Go and make ‘->’ C-specific
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 5 |
1 files changed, 3 insertions, 2 deletions
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: |