]> git.armaanb.net Git - config.org.git/commitdiff
Ligatures in text-mode as well
authorArmaan Bhojwani <me@armaanb.net>
Sun, 28 Mar 2021 02:24:37 +0000 (22:24 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 28 Mar 2021 02:24:37 +0000 (22:24 -0400)
config.org

index 7e6625badcc67838e6e48f6a20858654abd79f5e..b5308f5c6c4d04d119076cc22b20326343ec5685 100644 (file)
@@ -57,7 +57,7 @@ Its fine to set this here because I run Emacs in daemon mode, but if I were not,
 #+end_src
 ** Typography
 *** Font
-Great programming font with ligatures
+Great programming font with ligatures.
 #+begin_src emacs-lisp
   (add-to-list 'default-frame-alist '(font . "JetBrainsMonoNF-12"))
 #+end_src
@@ -65,19 +65,20 @@ Great programming font with ligatures
 #+begin_src emacs-lisp
   (use-package ligature
     :straight (ligature :type git :host github :repo "mickeynp/ligature.el")
-    :load-path "path-to-ligature-repo"
     :config
-    (ligature-set-ligatures 'prog-mode '("-|" "-~" "---" "-<<" "-<" "--" "->" "->>" "-->" "///" "/=" "/=="
-                                         "/>" "//" "/*" "*>" "***" "*/" "<-" "<<-" "<=>" "<=" "<|" "<||"
-                                         "<|||" "<|>" "<:" "<>" "<-<" "<<<" "<==" "<<=" "<=<" "<==>" "<-|"
-                                         "<<" "<~>" "<=|" "<~~" "<~" "<$>" "<$" "<+>" "<+" "</>" "</" "<*"
-                                         "<*>" "<->" "<!--" ":>" ":<" ":::" "::" ":?" ":?>" ":=" "::=" "=>>"
-                                         "==>" "=/=" "=!=" "=>" "===" "=:=" "==" "!==" "!!" "!=" ">]" ">:"
-                                         ">>-" ">>=" ">=>" ">>>" ">-" ">=" "&&&" "&&" "|||>" "||>" "|>" "|]"
-                                         "|}" "|=>" "|->" "|=" "||-" "|-" "||=" "||" ".." ".?" ".=" ".-" "..<"
-                                         "..." "+++" "+>" "++" "[||]" "[<" "[|" "{|" "??" "?." "?=" "?:" "##"
-                                         "###" "####" "#[" "#{" "#=" "#!" "#:" "#_(" "#_" "#?" "#(" ";;" "_|_"
-                                         "__" "~~" "~~>" "~>" "~-" "~@" "$>" "^=" "]#"))
+    (ligature-set-ligatures
+     '(prog-mode text-mode)
+     '("-|" "-~" "---" "-<<" "-<" "--" "->" "->>" "-->" "///" "/=" "/=="
+       "/>" "//" "/*" "*>" "***" "*/" "<-" "<<-" "<=>" "<=" "<|" "<||"
+       "<|||" "<|>" "<:" "<>" "<-<" "<<<" "<==" "<<=" "<=<" "<==>" "<-|"
+       "<<" "<~>" "<=|" "<~~" "<~" "<$>" "<$" "<+>" "<+" "</>" "</" "<*"
+       "<*>" "<->" "<!--" ":>" ":<" ":::" "::" ":?" ":?>" ":=" "::=" "=>>"
+       "==>" "=/=" "=!=" "=>" "===" "=:=" "==" "!==" "!!" "!=" ">]" ">:"
+       ">>-" ">>=" ">=>" ">>>" ">-" ">=" "&&&" "&&" "|||>" "||>" "|>" "|]"
+       "|}" "|=>" "|->" "|=" "||-" "|-" "||=" "||" ".." ".?" ".=" ".-" "..<"
+       "..." "+++" "+>" "++" "[||]" "[<" "[|" "{|" "??" "?." "?=" "?:" "##"
+       "###" "####" "#[" "#{" "#=" "#!" "#:" "#_(" "#_" "#?" "#(" ";;" "_|_"
+       "__" "~~" "~~>" "~>" "~-" "~@" "$>" "^=" "]#"))
     (global-ligature-mode t))
 #+end_src
 *** Emoji
@@ -271,6 +272,7 @@ Add back C-a/C-x
     (org-log-done 'time)
     (org-log-into-drawer t)
     (org-src-tab-acts-natively t)
+    (org-src-fontify-natively t)
     (org-startup-indented t)
     (org-hide-emphasis-markers t)
     (org-fontify-whole-block-delimiter-line nil))