docs(ligatures): use set-font-ligatures!
This commit is contained in:
parent
6e8f581897
commit
dff6c36ab5
1 changed files with 9 additions and 9 deletions
|
@ -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
|
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.
|
||||||
;; Example: enable traditional ligature support in eww-mode, if the
|
;; Example: enable traditional ligature support in eww-mode, if the
|
||||||
;; `variable-pitch' face supports it
|
;; `variable-pitch' face supports it
|
||||||
(set-font-ligatures! 'eww-mode "ff" "fi" "ffi")
|
(set-font-ligatures! 'eww-mode "ff" "fi" "ffi")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue