home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 9387c00a0e1e89dbf5fc5eb14484fd346d8b5434
parent 951bbb21fc4ae510871443c1c245f45102ac3b11
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu,  6 Jun 2024 12:45:59 +0200

tools/emacs: switch to JetBrains Mono…

… and configure ligature mode.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-appearance.el | 16++++++++++++++++
Mtools/emacs/early-init.el | 2+-
Musers/vincent/dev/emacs.nix | 1+
3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/tools/emacs/config/config-appearance.el b/tools/emacs/config/config-appearance.el @@ -244,5 +244,21 @@ questions. Else use completion to select the tab to switch to." :config (setq alert-default-style 'libnotify)) +(use-package ligature + :config + (ligature-set-ligatures 'prog-mode '("-|" "-~" "---" "-<<" "-<" "--" "->" "->>" "-->" "///" "/=" "/==" + "/>" "//" "/*" "*>" "***" "*/" "<-" "<<-" "<=>" "<=" "<|" "<||" + "<|||" "<|>" "<:" "<>" "<-<" "<<<" "<==" "<<=" "<=<" "<==>" "<-|" + "<<" "<~>" "<=|" "<~~" "<~" "<$>" "<$" "<+>" "<+" "</>" "</" "<*" + "<*>" "<->" "<!--" ":>" ":<" ":::" "::" ":?" ":?>" ":=" "::=" "=>>" + "==>" "=/=" "=!=" "=>" "===" "=:=" "==" "!==" "!!" "!=" ">]" ">:" + ">>-" ">>=" ">=>" ">>>" ">-" ">=" "&&&" "&&" "|||>" "||>" "|>" "|]" + "|}" "|=>" "|->" "|=" "||-" "|-" "||=" "||" ".." ".?" ".=" ".-" "..<" + "..." "+++" "+>" "++" "[||]" "[<" "[|" "{|" "??" "?." "?=" "?:" "##" + "###" "####" "#[" "#{" "#=" "#!" "#:" "#_(" "#_" "#?" "#(" ";;" "_|_" + "__" "~~" "~~>" "~>" "~-" "~@" "$>" "^=" "]#")) + :hook + (after-init . global-ligature-mode)) + (provide 'config-appearance) ;;; config-appearance.el ends here diff --git a/tools/emacs/early-init.el b/tools/emacs/early-init.el @@ -101,7 +101,7 @@ (defconst font-height 130 "Default font-height to use.") ;; 2024-10-05: Switching from Ubuntu Mono to Cascadia Mono -(defconst font-family-mono "Cascadia Mono" +(defconst font-family-mono "JetBrains Mono" "Default monospace font-family to use.") (defconst font-family-sans "Ubuntu Sans" "Default sans font-family to use.") diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -96,6 +96,7 @@ let ibuffer-vc jinx json-mode + ligature lin magit magit-popup