From a2e5bdfea9f23528d13ccdc408bed6ecdd7d2e3d Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Sat, 17 May 2025 20:05:24 +0200 Subject: Remove Ligature Noise Cut down on the ligatures that we use. Also, ensure that we use `rust-ts-mode` for editing Rust files. --- config/emacs/init.el | 55 ++++++++++++++++++++++++---------------------------- 1 file changed, 25 insertions(+), 30 deletions(-) diff --git a/config/emacs/init.el b/config/emacs/init.el index 3324325..230dbf7 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -47,6 +47,10 @@ (interactive) (find-file custom-file)) +(defun init/dev () + "Returns whether or not this configuration is for the `development' flavour." + (eq init/system-flavour 'development)) + ;;; -- Emacs Configuration -- ;; Mostly adapted from `sanemacs.el', and ported to a `use-package' @@ -142,43 +146,25 @@ ;;; -- General Development -- (use-package ligature - :if (eq init/system-flavour 'development) + :if (init/dev) :ensure t :hook (prog-mode . ligature-mode) :config (ligature-set-ligatures 'prog-mode - '(;; Group A - ".." ".=" "..." "..<" "::" ":::" ":=" "::=" ";;" ";;;" "??" "???" ".?" "?." - ":?" "?:" "?=" "**" "***" "/*" "*/" "/**" - ;; Group B - "<-" "->" "-<" ">-" "<--" "-->" "<<-" "->>" "-<<" ">>-" "<-<" ">->" "<-|" - "|->" "-|" "|-" "||-" "" + "