Questions tagged [rust]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
36 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
1answer
110 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 ...
1
vote
1answer
106 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 '...
0
votes
1answer
299 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
132 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/...
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?
1
vote
0answers
140 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....
2
votes
1answer
985 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 ...
5
votes
1answer
340 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 ...
2
votes
1answer
245 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
822 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
1answer
245 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
2answers
408 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 ";") (...