diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..814a059 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +auto-save-list/* +elpa/* +projectile-bookmarks.eld +transient/* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..985a719 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "packages/ligature.el"] + path = packages/ligature.el + url = git@github.com:mickeynp/ligature.el.git diff --git a/README.org b/README.org index 9f9b3f1..899e51c 100644 --- a/README.org +++ b/README.org @@ -97,6 +97,36 @@ Setup FiraCode and Cantarell fonts with specified size. (set-face-attribute 'variable-pitch nil :font "Cantarell" :height sb/default-font-size :weight 'regular) #+end_src +** Ligature Support + +Add ligature support for Fira Code font. +- https://github.com/tonsky/FiraCode/wiki/Emacs-instructions#using-ligatureel + +#+begin_src emacs-lisp + (use-package ligature + :load-path "./packages/ligature.el" + :config + ;; Enable the "www" ligature in every possible major mode + (ligature-set-ligatures 't '("www")) + ;; Enable traditional ligature support in eww-mode, if the + ;; `variable-pitch' face supports it + (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) + ;; Enable ligatures in programming modes (Fira Code) + (ligature-set-ligatures 'prog-mode '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::" + ":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>" + "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" + "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" + "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" + "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" + "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" + "<*>" "<|" "<|>" "<$" "<$>" "" "->" "->>" + "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" + "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" + "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" + "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" + "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" + "<*>" "<|" "<|>" "<$" "<$>" "