diff options
| author | brotzeit <brotzeitmacher@gmail.com> | 2019-11-01 19:43:42 +0100 |
|---|---|---|
| committer | brotzeit <brotzeitmacher@gmail.com> | 2019-11-01 19:45:38 +0100 |
| commit | 9107989da42561ab3fceb4a816077486c7d9f706 (patch) | |
| tree | 4a9f2f0d402e6ca89e84d1e4dacce205b6175905 /README.md | |
| parent | c5ab165f43723f29c1ebbcbe16a325f9952760ea (diff) | |
| download | rust-mode-9107989da42561ab3fceb4a816077486c7d9f706.tar.gz | |
review
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 32 |
1 files changed, 6 insertions, 26 deletions
@@ -7,7 +7,7 @@ - [Installation](#installation) - [Melpa](#melpa) - - [use-package and straight](#use-package-and-straight) + - [straight](#straight) - [Manual Installation](#manual-installation) - [Indentation](#indentation) - [rustfmt](#rustfmt) @@ -43,24 +43,9 @@ And put this in your config to load rust-mode automatically: `(require 'rust-mode)` -## use-package and straight +## straight -```elisp -(defvar bootstrap-version) -(let ((bootstrap-file - (expand-file-name "~/tmp/git/straight.el/bootstrap.el" user-emacs-directory)) - (bootstrap-version 5)) - (unless (file-exists-p bootstrap-file) - (with-current-buffer - (url-retrieve-synchronously - "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" - 'silent 'inhibit-cookies) - (goto-char (point-max)) - (eval-print-last-sexp))) - (load bootstrap-file nil 'nomessage)) - -(use-package rust-mode) -``` +[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. ## Manual Installation @@ -101,17 +86,12 @@ you set the environment variable EMACS to a program that runs emacs. ## eglot -```elisp -(require 'eglot) -(add-hook 'rust-mode-hook 'eglot-ensure) -``` +[Installation instructions](https://github.com/joaotavora/eglot#connecting-automatically) ## lsp-mode -```elisp -(require 'lsp-mode) -(add-hook 'rust-mode-hook #'lsp) -``` +[Installation instructions](https://github.com/emacs-lsp/lsp-mode#installation) + You can find more information in the [lsp-mode wiki](https://github.com/emacs-lsp/lsp-mode/wiki/Rust). |
