|
7 | 7 |
|
8 | 8 | - [Installation](#installation)
|
9 | 9 | - [Melpa](#melpa)
|
10 |
| - - [use-package and straight](#use-package-and-straight) |
| 10 | + - [straight](#straight) |
11 | 11 | - [Manual Installation](#manual-installation)
|
12 | 12 | - [Indentation](#indentation)
|
13 | 13 | - [rustfmt](#rustfmt)
|
@@ -43,24 +43,9 @@ And put this in your config to load rust-mode automatically:
|
43 | 43 |
|
44 | 44 | `(require 'rust-mode)`
|
45 | 45 |
|
46 |
| -## use-package and straight |
| 46 | +## straight |
47 | 47 |
|
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. |
64 | 49 |
|
65 | 50 | ## Manual Installation
|
66 | 51 |
|
@@ -101,17 +86,12 @@ you set the environment variable EMACS to a program that runs emacs.
|
101 | 86 |
|
102 | 87 | ## eglot
|
103 | 88 |
|
104 |
| -```elisp |
105 |
| -(require 'eglot) |
106 |
| -(add-hook 'rust-mode-hook 'eglot-ensure) |
107 |
| -``` |
| 89 | +[Installation instructions](https://github.com/joaotavora/eglot#connecting-automatically) |
108 | 90 |
|
109 | 91 | ## lsp-mode
|
110 | 92 |
|
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 | + |
115 | 95 |
|
116 | 96 | You can find more information in the [lsp-mode wiki](https://github.com/emacs-lsp/lsp-mode/wiki/Rust).
|
117 | 97 |
|
|
0 commit comments