Questions tagged [rust]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
369 views

Display documentation in Company results

The GitHub page for emacs-racer shows function signatures in company completion results. My results display "Function" and nothing beyond. I've searched through customize-group company and can't ...
3
votes
2answers
269 views

Cargo-process does not accept user input

Using the Emacs mode for Cargo, I'm able to build and run Rust code inside Emacs. However, the terminal that opens when executing cargo-process-run does not accept user input. For example, when ...
3
votes
1answer
1k views

Integrate rust-clippy into Emacs Rust development

rust-clippy is a linter for Rust. Is there an existing package or idiom that integrates it into an Emacs Rust workflow, the way emacs-racer integrates racer?
2
votes
1answer
1k views

Flycheck and Rust

I'm currently struggling to set up error checking for rust in emacs. Flycheck seems to work fine with other languages (C, Python, Ruby, eLisp) but doesn't appear to do anything in rust-mode. I ...
2
votes
1answer
304 views

How can I setup the tab indentation size for ***-mode (Rust, Python, Ruby, etc)?

I have rust-mode installed on my Emacs 24.4. The tab indentation I have is 2 whitespaces, however in Rust mode it's different. I want to setup the tab indentation size for rust-mode, how can I do ...
2
votes
1answer
129 views

rust-analyzer completion broken

When I try to use auto-completion with lsp + rust-analyzer, all functions inserted like that: shared_state.clone_from(${1:source})$0 I cannot find any way to disable this "arguments". I don'...
2
votes
1answer
870 views

Rust Racer autocomplete problem in Cygwin

I'm trying to set up racer mode for Rust language autocomletion, but when press 'tab' key got messages like this: Company: An error occurred in auto-begin Company: backend company-capf error "/...
1
vote
2answers
456 views

Add newline after a semicolon keypress

Only when rust-mode is enabled, what is the best way to insert a newline after a press on the ; key? This is what I have actually: (defun my-rust-lang-mode-config () (local-set-key (kbd ";") (...
1
vote
1answer
178 views

highlight-regexp groups for syntax highlighting

I want to highlight certain words to a color using highlight-regexp. The words I want to highlight are "fn", "let", "mut", etc. for rust development. The code I have so far is this: (add-hook '...
1
vote
1answer
386 views

Async shell command can't find command

I have installed the Rust programming language (Debian). Now i can compile and run programs from terminal (with the cargo build and cargo run commands), but not from inside emacs. The cargo compiler ...
1
vote
1answer
149 views

about setting up rust-playground

I have a problem with setting up rust-playground on Emacs. I installed rust-playground on Emacs 25.0.93 of Macbook Pro. When I run rust-playground, the following error happens. rustc /Users/...
1
vote
1answer
281 views

run a binary that uses ncurses in eshell under xterm-256color emulation

I have a binary (a rust program that uses bindings to ncurses) and I need to run it in eshell as xterm-256color (well, make it work correctly at least). I haven't figured out how to do this yet. Tried ...
1
vote
0answers
172 views

company doesn't pop up completion list automatically

I'm trying to get company mode to automatically trigger the pop-up with a list of possible completion. Unless I'm doing this wrong this is not the default behaviour? Current I have to run M-x company-...
1
vote
0answers
194 views

Rust autocomplete - hide paths where stuff is found

When the autocomplete from company-racer kicks in, it shows the path where it is found for some reason. For example, if I start typing: use std::i it comes up with io /usr/src/rust/src/libstd/io/mod....
0
votes
1answer
100 views

Attempting to use org-babel to write “literate” Rust

I'm playing around with writing Rust snippets in my editor. I can get org mode to format my things nicely and play nicely with rust-mode. But I can't evaluate my code snippets. I think that may be ...
0
votes
1answer
28 views

Is there a way to generally search package or language documentation within emacs?

In this case, I'm most interested in Rust's documentation, which lives at doc.rust-lang.org/std. eww is incompatible with JS, so the documentation doesn't play nice, thus my general current soln is to ...