diff --git a/Emacs-instructions.md b/Emacs-instructions.md index 4d44d76..70d2104 100644 --- a/Emacs-instructions.md +++ b/Emacs-instructions.md @@ -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" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::" + ":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>" + "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" + "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" - "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" - "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" - "<*>" "<|" "<|>" "<$" "<$>" "