Add Recursive font
This commit is contained in:
parent
37a417bd97
commit
f56e6f5b9b
2 changed files with 29 additions and 25 deletions
|
@ -55,9 +55,9 @@ Setting =lexical-binding= to =t= can improve startup time. This has to be first!
|
||||||
This sets some variables with my personal preferences for easy customization
|
This sets some variables with my personal preferences for easy customization
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defvar my/default-font "MonaspiceNe Nerd Font")
|
(defvar my/default-font "RecMonoLinear Nerd Font")
|
||||||
(defvar my/variable-width-font "Iosevka Aile")
|
(defvar my/variable-width-font "Iosevka Aile")
|
||||||
(defvar my/comment-font "MonaspiceRn Nerd Font")
|
(defvar my/comment-font "RecMonoCasual Nerd Font")
|
||||||
(defvar my/default-font-height 120)
|
(defvar my/default-font-height 120)
|
||||||
(defvar my/default-font-weight 'light)
|
(defvar my/default-font-weight 'light)
|
||||||
(defvar my/default-font-width 'normal)
|
(defvar my/default-font-width 'normal)
|
||||||
|
@ -431,33 +431,35 @@ Emoji support
|
||||||
Enable ligatures
|
Enable ligatures
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
(setq iosevka-ligatures '("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
|
||||||
|
"<==" "<===" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---"
|
||||||
|
"<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
|
||||||
|
":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++"))
|
||||||
|
(setq monaspace-ligatures '(
|
||||||
|
; ss01
|
||||||
|
"==" "===" "=/=" "!=" "!==" "/=" "/==" "~~" "=~" "!~"
|
||||||
|
; ss02
|
||||||
|
">=" "<="
|
||||||
|
; ss03
|
||||||
|
"->" "<-" "=>" "<!--" "-->" "<~" "<~~" "~>" "~~>" "<~>"
|
||||||
|
; ss04
|
||||||
|
"</" "/>" "</>" "/\\" "\\/"
|
||||||
|
; ss05
|
||||||
|
"|>" "<|"
|
||||||
|
; ss06
|
||||||
|
"##" "###"
|
||||||
|
; ss07
|
||||||
|
"***" "/*" "*/" "/*/" "(*" "*)" "(*)"
|
||||||
|
; ss08
|
||||||
|
".=" ".-" "..<"
|
||||||
|
; dlig & calt
|
||||||
|
"<!" "**" "::" "=:" "=!" "=/" "--" ".." "//" "&&" "||" ":=" ":>" ":<" "!!" ">:" "<:" "#=" "?:" "?." "??" ";;" "///" ":::" "..." "=!=" "=:=" "..=" "..-"))
|
||||||
|
|
||||||
(use-package ligature
|
(use-package ligature
|
||||||
:config
|
:config
|
||||||
;; Enable all Iosevka ligatures in programming modes
|
;; Enable all Iosevka ligatures in programming modes
|
||||||
;; (ligature-set-ligatures 'prog-mode '("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
|
(ligature-set-ligatures 'prog-mode iosevka-ligatures)
|
||||||
;; "<==" "<===" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---"
|
|
||||||
;; "<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
|
|
||||||
;; ":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++"))
|
|
||||||
;; Ligatures for Monaspace
|
;; Ligatures for Monaspace
|
||||||
(ligature-set-ligatures 'prog-mode '(
|
|
||||||
; ss01
|
|
||||||
"==" "===" "=/=" "!=" "!==" "/=" "/==" "~~" "=~" "!~"
|
|
||||||
; ss02
|
|
||||||
">=" "<="
|
|
||||||
; ss03
|
|
||||||
"->" "<-" "=>" "<!--" "-->" "<~" "<~~" "~>" "~~>" "<~>"
|
|
||||||
; ss04
|
|
||||||
"</" "/>" "</>" "/\\" "\\/"
|
|
||||||
; ss05
|
|
||||||
"|>" "<|"
|
|
||||||
; ss06
|
|
||||||
"##" "###"
|
|
||||||
; ss07
|
|
||||||
"***" "/*" "*/" "/*/" "(*" "*)" "(*)"
|
|
||||||
; ss08
|
|
||||||
".=" ".-" "..<"
|
|
||||||
; dlig & calt
|
|
||||||
"<!" "**" "::" "=:" "=!" "=/" "--" ".." "//" "&&" "||" ":=" ":>" ":<" "!!" ">:" "<:" "#=" "?:" "?." "??" ";;" "///" ":::" "..." "=!=" "=:=" "..=" "..-"))
|
|
||||||
;; 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))
|
||||||
|
|
|
@ -33,6 +33,7 @@ in
|
||||||
"Meslo"
|
"Meslo"
|
||||||
"Monaspace"
|
"Monaspace"
|
||||||
"Noto"
|
"Noto"
|
||||||
|
"Recursive"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
corefonts
|
corefonts
|
||||||
|
@ -42,6 +43,7 @@ in
|
||||||
material-icons
|
material-icons
|
||||||
monaspace
|
monaspace
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
|
recursive
|
||||||
ttf_bitstream_vera
|
ttf_bitstream_vera
|
||||||
twitter-color-emoji
|
twitter-color-emoji
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue