File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,21 @@ on save:
129
129
(setq rust-format-on-save t)
130
130
```
131
131
132
+ ### Prettifying
133
+
134
+ You can toggle prettification of your code by running `M-x
135
+ prettify-symbols-mode`. If you'd like to automatically enable this
136
+ for all rust files, add the following to your init.el.
137
+
138
+ ``` elisp
139
+ (add-hook 'rust-mode-hook
140
+ (lambda () (prettify-symbols-mode)))
141
+ ```
142
+
143
+ You can add your own prettifications to ` rust-prettify-symbols-alist ` .
144
+ For example, to display ` x.add(y) ` as ` x∔(y) ` , simply add to your init
145
+ file ` (push '(".add" . ?∔) rust-prettify-symbols-alist) ` .
146
+
132
147
### Running / testing / compiling code
133
148
134
149
The ` rust-run ` , ` rust-test ` , ` rust-compile ` and ` rust-check ` functions
You can’t perform that action at this time.
0 commit comments