Commit 9387c00a0e1e

Vincent Demeester <vincent@sbr.pm>
2024-06-06 12:45:59
tools/emacs: switch to JetBrains Mono…
… and configure ligature mode. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 951bbb2
Changed files (3)
tools
users
vincent
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
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.")
users/vincent/dev/emacs.nix
@@ -96,6 +96,7 @@ let
     ibuffer-vc
     jinx
     json-mode
+    ligature
     lin
     magit
     magit-popup