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,12 +227,12 @@ 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue