Last active
December 11, 2020 17:26
-
-
Save cornercase/3e68817c4e7beb169953d9841cd2b3b3 to your computer and use it in GitHub Desktop.
Emacs-OSX firacode setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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