diff --git a/nix/config/emacs/init.el b/nix/config/emacs/init.el index bcc049d..e0bca7e 100644 --- a/nix/config/emacs/init.el +++ b/nix/config/emacs/init.el @@ -102,9 +102,9 @@ (corfu-popupinfo-mode) :config (add-hook 'eshell-mode-hook - (lambda () - (setq-local corfu-auto nil) - (corfu-mode)))) + (lambda () + (setq-local corfu-auto nil) + (corfu-mode)))) (use-package diff-hl :hook ((magit-pre-refresh . diff-hl-magit-pre-refresh) @@ -269,7 +269,7 @@ :default-weight semilight :default-height 250) (t - :default-family "Cascadia Code" + :default-family "Fira Code" :default-weight regular :default-height 130 :fixed-pitch-height 1.0 @@ -324,26 +324,36 @@ :after fontaine :config (defun to/set-ligatures-for-font (font-family) - (let ((ligatures - (cond ((string= font-family "Iosevka Comfy") - '("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" - "<---->" "" "--->" "<-" "<--" "<---")) - (t - '())))) - (ligature-set-ligatures 'prog-mode ligatures))) + (let ((ligatures + (cond ((string= font-family "Iosevka Comfy") + '("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" + "<---->" "" "--->" "<-" "<--" "<---")) + ((string= font-family "Fira Code") + '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "[]" "::" + ":::" ":=" "!!" "!=" "!==" "-}" "--" "---" "-->" "->" "->>" "-<" + "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" "#_(" ".-" + ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" "/=" "/==" "/>" + "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" "++" "+++" "+>" + "=:=" "==" "===" "==>" "=>" "=>>" "<=" "=<<" "=/=" ">-" ">=" ">=>" + ">>" ">>-" ">>=" ">>>" "<*" "<*>" "<|" "<|>" "<$" "<$>" "