Tidied some font-specific comments

This commit is contained in:
Howard Abrams 2023-12-19 20:13:33 -08:00
parent ded7a58da0
commit abee1e8325
2 changed files with 27 additions and 21 deletions

View file

@ -215,12 +215,13 @@ My /current/ favorite font is actually the top list of fonts that may be install
(seq-first (seq-first
(seq-filter (lambda (font) (when (x-list-fonts font) font)) (seq-filter (lambda (font) (when (x-list-fonts font) font))
'("CaskaydiaCove Nerd Font" ; finally found it '("CaskaydiaCove Nerd Font" ; finally found it
"Cascadia Code PL" ; funky font with litagures and a dotted 0 ;; funky font with litagures and a dotted 0
"Hack Nerd Font" ; clean font, but no litagures!? "Cascadia Code PL"
;; clean font, but no litagures!?
"Hack Nerd Font"
"FiraCode Nerd Font" ; has litagures "FiraCode Nerd Font" ; has litagures
"Cousine Nerd Font" "Cousine Nerd Font"
"Iosevka Nerd Font" "Iosevka Nerd Font"
"Iosevka"
"FantasqueSansMono Nerd Font" "FantasqueSansMono Nerd Font"
"Monoid Nerd Font" "Monoid Nerd Font"
"Hasklig" "Hasklig"
@ -237,9 +238,11 @@ I probably don't need to have such a ranking system, as chances are good I have
(seq-first (seq-first
(seq-filter (lambda (font) (when (x-list-fonts font) font)) (seq-filter (lambda (font) (when (x-list-fonts font) font))
'("Literata" ; Clean, readable with litagures '("Literata" ; Clean, readable with litagures
"XCharter" ; https://fontesk.com/xcharter-typeface/ ;; Next best can be downloaded here:
;; https://fontesk.com/xcharter-typeface/
"XCharter"
"Charter" "Charter"
; Interesting idea: "Iosevka Comfy Motion Duo" ;; Interesting idea: "Iosevka Comfy Motion Duo"
"Serif"))) "Serif")))
(warn "Cannot find a Serif Font. Install Source Sans Pro.")))) (warn "Cannot find a Serif Font. Install Source Sans Pro."))))
@ -248,9 +251,11 @@ I probably don't need to have such a ranking system, as chances are good I have
(or (or
(seq-first (seq-first
(seq-filter (lambda (font) (when (x-list-fonts font) font)) (seq-filter (lambda (font) (when (x-list-fonts font) font))
'("Overpass" "Source Sans Pro" '("Overpass" "DejaVu Sans"
"Lucida Grande" "Verdana" "Verdana" "Overpass"
"Sans Serif"))) "Source Sans Pro"
"Lucida Grande"
"Sans Serif")))
(warn "Cannot find a Sans Serif Font. Install Source Sans Pro.")))) (warn "Cannot find a Sans Serif Font. Install Source Sans Pro."))))
#+end_src #+end_src

View file

@ -753,19 +753,20 @@ Hopefully I can follow [[https://www.masteringemacs.org/article/unicode-ligature
("-" (rx (+ "-"))))) ("-" (rx (+ "-")))))
;; Enable all Cascadia Code ligatures in programming modes ;; Enable all Cascadia Code ligatures in programming modes
(ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>" (ligature-set-ligatures
":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!==" 'prog-mode '("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>"
"!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<" ":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!=="
"<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" "!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<"
"<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<" "<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->"
"..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~=" "<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<"
"~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|" "..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~="
"[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:" "~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|"
">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" "[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:"
"<$" "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!" ">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:"
"##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:" "<$" "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!"
"?=" "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" "##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:"
"\\\\" "://")) "?=" "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
"\\\\" "://"))
;; Enables ligature checks globally in all buffers. You can also do it ;; Enables ligature checks globally in all buffers. You can also do it
;; per mode with `ligature-mode'. ;; per mode with `ligature-mode'.
(global-ligature-mode t)) (global-ligature-mode t))