Skip to content

Commit 9107989

Browse files
committed
review
1 parent c5ab165 commit 9107989

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

README.md

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
- [Installation](#installation)
99
- [Melpa](#melpa)
10-
- [use-package and straight](#use-package-and-straight)
10+
- [straight](#straight)
1111
- [Manual Installation](#manual-installation)
1212
- [Indentation](#indentation)
1313
- [rustfmt](#rustfmt)
@@ -43,24 +43,9 @@ And put this in your config to load rust-mode automatically:
4343

4444
`(require 'rust-mode)`
4545

46-
## use-package and straight
46+
## straight
4747

48-
```elisp
49-
(defvar bootstrap-version)
50-
(let ((bootstrap-file
51-
(expand-file-name "~/tmp/git/straight.el/bootstrap.el" user-emacs-directory))
52-
(bootstrap-version 5))
53-
(unless (file-exists-p bootstrap-file)
54-
(with-current-buffer
55-
(url-retrieve-synchronously
56-
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
57-
'silent 'inhibit-cookies)
58-
(goto-char (point-max))
59-
(eval-print-last-sexp)))
60-
(load bootstrap-file nil 'nomessage))
61-
62-
(use-package rust-mode)
63-
```
48+
[straight.el](https://github.com/raxod502/straight.el#install-packages) clones each of your packages directly from its source. There are good additional [installation instructions](https://github.crookster.org/switching-to-straight.el-from-emacs-26-builtin-package.el/) for moving your package management from package.el to straight.
6449

6550
## Manual Installation
6651

@@ -101,17 +86,12 @@ you set the environment variable EMACS to a program that runs emacs.
10186

10287
## eglot
10388

104-
```elisp
105-
(require 'eglot)
106-
(add-hook 'rust-mode-hook 'eglot-ensure)
107-
```
89+
[Installation instructions](https://github.com/joaotavora/eglot#connecting-automatically)
10890

10991
## lsp-mode
11092

111-
```elisp
112-
(require 'lsp-mode)
113-
(add-hook 'rust-mode-hook #'lsp)
114-
```
93+
[Installation instructions](https://github.com/emacs-lsp/lsp-mode#installation)
94+
11595

11696
You can find more information in the [lsp-mode wiki](https://github.com/emacs-lsp/lsp-mode/wiki/Rust).
11797

0 commit comments

Comments
 (0)