From b99cb3ceca1e7e24e1c0c68942ca8efc0666728f Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Mon, 7 Jun 2021 08:35:25 -0400 Subject: [PATCH] Fix Ligature Issue & Add Makefile to Org babel Languages - Replace ligature package submodule with fira code mode - Add makefile to org babel languages --- .gitmodules | 4 ---- README.org | 38 ++++++++++---------------------------- init.el | 39 ++++----------------------------------- packages/ligature.el | 1 - 4 files changed, 14 insertions(+), 68 deletions(-) delete mode 160000 packages/ligature.el diff --git a/.gitmodules b/.gitmodules index 42ca94c..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +0,0 @@ -[submodule "packages/ligature.el"] - path = packages/ligature.el - url = git@github.com:mickeynp/ligature.el.git - branch = master diff --git a/README.org b/README.org index 0fc1b0e..5195a52 100644 --- a/README.org +++ b/README.org @@ -111,33 +111,16 @@ Setup FiraCode and Cantarell fonts with specified size. ** Ligature Support -Add ligature support for Fira Code font. +Add ligature support using Fira Code symbols. -- https://github.com/tonsky/FiraCode/wiki/Emacs-instructions#using-ligatureel +*NOTE*: The first time you load your configuration on a new machine, you'll need to run the following command interactively so that ligature symbols display correctly: + +~M-x fira-code-mode-install-fonts RET~ #+begin_src emacs-lisp :tangle init.el - (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" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::" - ":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>" - "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" - "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" - "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" - "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" - "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" - "<*>" "<|" "<|>" "<$" "<$>" "" "->" "->>" - "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" - "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" - "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" - "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" - "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" - "<*>" "<|" "<|>" "<$" "<$>" "