Ligature configuration
This commit is contained in:
parent
f3c726f5eb
commit
4542fc66f9
1 changed files with 20 additions and 0 deletions
20
init.el
20
init.el
|
@ -8,6 +8,7 @@
|
||||||
;; - understand how to configure cape
|
;; - understand how to configure cape
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
|
||||||
(use-package flymake
|
(use-package flymake
|
||||||
:config
|
:config
|
||||||
;; TODO write "E", "W" or "N" in margins overriding the margin created by diff-hl
|
;; TODO write "E", "W" or "N" in margins overriding the margin created by diff-hl
|
||||||
|
@ -96,6 +97,25 @@
|
||||||
:config
|
:config
|
||||||
(set-face-background 'solaire-default-face "#1c1d26"))
|
(set-face-background 'solaire-default-face "#1c1d26"))
|
||||||
|
|
||||||
|
(use-package ligature
|
||||||
|
:config
|
||||||
|
(ligature-set-ligatures 't '("www"))
|
||||||
|
(ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi"))
|
||||||
|
(ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>"
|
||||||
|
":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!=="
|
||||||
|
"!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<"
|
||||||
|
"<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->"
|
||||||
|
"<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<"
|
||||||
|
"..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~="
|
||||||
|
"~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|"
|
||||||
|
"[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:"
|
||||||
|
">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:"
|
||||||
|
"<$" "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!"
|
||||||
|
"##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:"
|
||||||
|
"?=" "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
||||||
|
"\\\\" "://"))
|
||||||
|
(global-ligature-mode t))
|
||||||
|
|
||||||
(use-package rainbow-delimiters
|
(use-package rainbow-delimiters
|
||||||
:hook (prog-mode . rainbow-delimiters-mode))
|
:hook (prog-mode . rainbow-delimiters-mode))
|
||||||
|
|
||||||
|
|
Reference in a new issue