Update the symbol prettifier lists
This commit is contained in:
parent
4e87ff3355
commit
18b2932f07
@ -1208,12 +1208,16 @@ And set up all the pretty symbols.
|
|||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq prettify-symbols-alist
|
(setq prettify-symbols-alist
|
||||||
'(("lambda" . 955) ; λ
|
'(("lambda" . ?λ)
|
||||||
("function" . 402) ; ƒ
|
("function" . ?ƒ)
|
||||||
("->" . 8594) ; →
|
("->" . ?→)
|
||||||
("=>" . 8658) ; ⇒
|
("=>" . ?⇒)
|
||||||
("map" . 8614) ; ↦
|
("map" . ?↦)
|
||||||
("not" . 172))) ; ¬
|
("not" . ?¬)
|
||||||
|
("and" . ?∧)
|
||||||
|
("or" . ?∨)
|
||||||
|
("<=" . ?≤)
|
||||||
|
(">=" . ?≥)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
…and some pairs to complete
|
…and some pairs to complete
|
||||||
@ -2792,11 +2796,16 @@ Maybe add ∉ for ~not in~ later, if possible.
|
|||||||
(add-hook 'python-mode-hook
|
(add-hook 'python-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(add-to-list 'prettify-symbols-alist
|
(add-to-list 'prettify-symbols-alist
|
||||||
'("not" . 172))
|
'("not in" . ?∉))
|
||||||
(add-to-list 'prettify-symbols-alist
|
(add-to-list 'prettify-symbols-alist
|
||||||
'("in" . 8712))
|
'("in" . ?∈))
|
||||||
(add-to-list 'prettify-symbols-alist
|
(add-to-list 'prettify-symbols-alist
|
||||||
'("def" . 402))))
|
'("def" . ?ƒ))
|
||||||
|
(add-to-list 'prettify-symbols-alist
|
||||||
|
'("is not" . ?≭))
|
||||||
|
(add-to-list 'prettify-symbols-alist
|
||||||
|
'("is" . ?≍))
|
||||||
|
))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Pyre-based LSP
|
** Pyre-based LSP
|
||||||
|
Loading…
Reference in New Issue
Block a user