Commit graph

11 commits

Author SHA1 Message Date
Jennifer Page 1e9336dc03 Turn off super-save in rust-mode
Some checks failed
CI / build (push) Failing after 13s
Related to #1372, it appears that `super-save` doesn't play nicely
with LSP features in `rust-mode`.
2024-04-03 07:58:27 +03:00
Daniel Gerlach 54e3d81b1f
Update rust module (#1388)
Use rust-analyzer as lsp server and tree-sitter for syntax highlighting.
2022-11-21 22:14:15 +02:00
Aidan Bickford 028ec34a25 Update prelude-rust.el
Small grammar fix.
2020-11-01 18:23:47 +02:00
Bozhidar Batsov edeef9ee4b Make the file metadata more uniform 2020-09-15 09:19:15 +03:00
Daniel Hutzley 3a85ecd0df Add Rusty Object Notation to the Rust package 2020-08-24 08:24:51 +03:00
apiraino d42469c8f6 Extend rust module keybindings (#1237) 2019-06-18 19:33:11 +03:00
Josh Comer 63c697c2f4 Fix rust LSP
* Removed lsp-rust (RLS is built into lsp-mode now)
* Fixed setting up flycheck mode in rust mode
* Fixed LSP initialization due to deprecation
* LSP-mode now self configures company and ui-mode
2019-01-01 15:44:39 +02:00
Ben Alex 3a11f84bf5 Rust Language Server (RLS) support 2018-11-21 10:11:19 +01:00
Geoff Shannon 598fdd8392 Stop Rust source files from being made executable
Rust has an unfortunate syntax for setting attributes on a module file:

```rust
  #![...]
```

Since this is typically put at the top of the file, that makes the
shebang the first two characters, which makes the `after-save-hook`
function `executable-make-buffer-file-executable-if-script-p` function
change any such rust files executable.
2018-09-22 13:43:29 +04:00
Bozhidar Batsov cecae9ca19 Replace usages of eval-after-load with with-eval-after-load
`with-eval-after-load` was introduced in Emacs 24.4 and its
usage results in a cleaner code.

`eval-after-load` is considered ill-behaved because it is a function,
not a macro, and thus requires the code inside it to be quoted, which
means that it cannot be byte-compiled. It also accepts only one form,
so if you have more than one, you need to use `progn`.

More details - https://stackoverflow.com/questions/21880139/what-is-with-eval-after-load-in-emacs-lisp
2018-09-14 09:50:00 +03:00
Manoel Vilela bfee53643c Add the prelude-rust.el module (#1102)
The module uses the following packages:

* rust-mode (general utilities for rust development)
* flycheck-rust (syntax checking)
* cargo (keybinding as minor-mode for using cargo package manager)
* racer (wrapper for the race code completion tool using company-mode)
2017-07-17 17:07:48 +03:00