Commit graph

3 commits

Author SHA1 Message Date
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