Skip to content

Instantly share code, notes, and snippets.

@jmibanez
Created August 30, 2021 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmibanez/b14228a3f8e4aab910f2846496e51e49 to your computer and use it in GitHub Desktop.
Save jmibanez/b14228a3f8e4aab910f2846496e51e49 to your computer and use it in GitHub Desktop.
;; emacs-mac only; see next for emacs-plus config
;; (mac-auto-operator-composition-mode) ;; Needed for ligatures in Fira Code
;; ligature.el isn't in MELPA yet, so pull it in from our local elisp load path
(use-package ligature
:config
(ligature-set-ligatures 't '("www"))
;; Enable ligatures in programming modes
(ligature-set-ligatures 'prog-mode '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
"/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>"
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%"))
(global-ligature-mode 't)
:load-path "~/elisp/ligature.el")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment