summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-wong-dfinity-org <97631336+daniel-wong-dfinity-org@users.noreply.github.com>2022-01-18 14:46:45 -0800
committerGitHub <noreply@github.com>2022-01-18 14:46:45 -0800
commitf462803531fc66c8b3d2ad545d15335228a09b2e (patch)
tree3fc83c22cedfbea8795015d55566bcbd70497323
parent49ff6cceba7a546595c5b0cc18c7501b22e0c9e9 (diff)
downloadrust-mode-f462803531fc66c8b3d2ad545d15335228a09b2e.tar.gz
rust-mode should be enabled automatically when opening .rs files
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 920b37a..aeeb987 100644
--- a/README.md
+++ b/README.md
@@ -100,6 +100,7 @@ Clone this repository locally, and add this to your init.el:
``` elisp
(add-to-list 'load-path "/path/to/rust-mode/")
(autoload 'rust-mode "rust-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
```
## Feature guide