Skip to content

Instantly share code, notes, and snippets.

@cornercase
Last active December 11, 2020 17:26
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 cornercase/3e68817c4e7beb169953d9841cd2b3b3 to your computer and use it in GitHub Desktop.
Save cornercase/3e68817c4e7beb169953d9841cd2b3b3 to your computer and use it in GitHub Desktop.
Emacs-OSX firacode setup
;; Make sure Fira Code is installed first
(add-to-list 'default-frame-alist '(font . "-*-Fira Code-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1" ))
(set-face-attribute 'default t :font "-*-Fira Code-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1" )
(use-package ligature
:straight (ligature :type git
:host github
:repo "mickeynp/ligature.el"))
;; 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" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
"/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>"
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%"))
(global-ligature-mode 't)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment