mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-04 00:31:49 +03:00
Removed excess whitespace from ligature.el section in emacs installation guide
parent
ba0aba2451
commit
5686e3d8c5
@ -27,21 +27,21 @@ of Emacs (by Mitsuharu Yamamoto) for macOS, you can use:
|
||||
If you're using a modern version of emacs, you might have ligature support built-in, via HARFBUZZ / Cairo. The [ligature.el](https://github.com/mickeynp/ligature.el) package adds infrastructure that uses Harfbuzz and Cairo to render ligatures from the fonts, just like in any other editor. Add the following to your `init.el` file:
|
||||
|
||||
```elisp
|
||||
;; Enable the www ligature in every possible major mode
|
||||
(ligature-set-ligatures 't '("www"))
|
||||
|
||||
;; Enable the www ligature in every possible major mode
|
||||
(ligature-set-ligatures 't '("www"))
|
||||
|
||||
;; Enable ligatures in programming modes
|
||||
(ligature-set-ligatures 'prog-mode '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
|
||||
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
|
||||
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
|
||||
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
|
||||
(ligature-set-ligatures 'prog-mode '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
|
||||
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
|
||||
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
|
||||
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
|
||||
"/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>"
|
||||
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
|
||||
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
|
||||
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
|
||||
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
|
||||
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%"))
|
||||
|
||||
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
|
||||
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
|
||||
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
|
||||
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
|
||||
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%"))
|
||||
|
||||
(global-ligature-mode 't)
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user