From dff6c36ab54f153aaba3b975f41705665a1304b4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 19 Aug 2024 16:43:27 -0400 Subject: [PATCH] docs(ligatures): use set-font-ligatures! --- modules/ui/ligatures/README.org | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/ui/ligatures/README.org b/modules/ui/ligatures/README.org index 8cd7a4478..1db2736c0 100644 --- a/modules/ui/ligatures/README.org +++ b/modules/ui/ligatures/README.org @@ -227,17 +227,17 @@ If you want to "start from scratch" and get control over all ligatures that happen in all modes, you can use #+begin_src elisp -;; Set all your custom ligatures for all prog-modes here -;; This section is *out of* the after! block -;; Example: only get ligatures for "==" and "===" in programming modes -;; by default, and get only "www" in all buffers by default. -(setq +ligatures-prog-mode-list '("==" "===") - +ligatures-all-modes-list '("www")) +;; Set all your custom ligatures for all prog-modes here. +;; This section is *out of* the after! block. +;; Example: only get ligatures for "==" and "===" in programming modes by +;; default, and get only "www" in all buffers by default. +(set-font-ligatures! 'prog-mode :append "==" "===") +(set-font-ligatures! 't :append "www") ;; Set any of those variables to nil to wipe all defaults. - ;; Set all your additional custom ligatures for other major modes here. - ;; Example: enable traditional ligature support in eww-mode, if the - ;; `variable-pitch' face supports it +;; Set all your additional custom ligatures for other major modes here. +;; Example: enable traditional ligature support in eww-mode, if the +;; `variable-pitch' face supports it (set-font-ligatures! 'eww-mode "ff" "fi" "ffi") #+end_src