Add function to prettify symbol list
This commit is contained in:
parent
0be142e232
commit
9cf095303a
15
init.el
15
init.el
@ -1034,7 +1034,9 @@ INFO plist."
|
|||||||
(add-to-list 'prettify-symbols-alist
|
(add-to-list 'prettify-symbols-alist
|
||||||
'("not" . 172))
|
'("not" . 172))
|
||||||
(add-to-list 'prettify-symbols-alist
|
(add-to-list 'prettify-symbols-alist
|
||||||
'("in" . 8712))))
|
'("in" . 8712))
|
||||||
|
(add-to-list 'prettify-symbols-alist
|
||||||
|
'("def" . 402))))
|
||||||
|
|
||||||
;; `c-mode' settings
|
;; `c-mode' settings
|
||||||
(add-hook 'c-mode-common-hook
|
(add-hook 'c-mode-common-hook
|
||||||
@ -1155,11 +1157,12 @@ INFO plist."
|
|||||||
|
|
||||||
;; Add some symbols to be prettified
|
;; Add some symbols to be prettified
|
||||||
(setq prettify-symbols-alist
|
(setq prettify-symbols-alist
|
||||||
'(("lambda" . 955) ; λ
|
'(("lambda" . 955) ; λ
|
||||||
("->" . 8594) ; →
|
("function" . 402) ; ƒ
|
||||||
("=>" . 8658) ; ⇒
|
("->" . 8594) ; →
|
||||||
("map" . 8614) ; ↦
|
("=>" . 8658) ; ⇒
|
||||||
("not" . 172)) ; ¬
|
("map" . 8614) ; ↦
|
||||||
|
("not" . 172)) ; ¬
|
||||||
|
|
||||||
;; …and some pairs to complete
|
;; …and some pairs to complete
|
||||||
;; TODO: maybe add-to-list is a better way to do it
|
;; TODO: maybe add-to-list is a better way to do it
|
||||||
|
Loading…
Reference in New Issue
Block a user