docs(ligatures): use set-font-ligatures!

This commit is contained in:
Henrik Lissner 2024-08-19 16:43:27 -04:00
parent 6e8f581897
commit dff6c36ab5
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -227,12 +227,12 @@ If you want to "start from scratch" and get control over all ligatures that
happen in all modes, you can use happen in all modes, you can use
#+begin_src elisp #+begin_src elisp
;; Set all your custom ligatures for all prog-modes here ;; Set all your custom ligatures for all prog-modes here.
;; This section is *out of* the after! block ;; This section is *out of* the after! block.
;; Example: only get ligatures for "==" and "===" in programming modes ;; Example: only get ligatures for "==" and "===" in programming modes by
;; by default, and get only "www" in all buffers by default. ;; default, and get only "www" in all buffers by default.
(setq +ligatures-prog-mode-list '("==" "===") (set-font-ligatures! 'prog-mode :append "==" "===")
+ligatures-all-modes-list '("www")) (set-font-ligatures! 't :append "www")
;; Set any of those variables to nil to wipe all defaults. ;; Set any of those variables to nil to wipe all defaults.
;; Set all your additional custom ligatures for other major modes here. ;; Set all your additional custom ligatures for other major modes here.