Very Similar Question
And I am currently trying to install rust-mode for emacs 24.5.1 following the instructions at https://github.com/rust-lang/rust-mode. Firstly I installed manually, it worked fun. But when I wanted to install it by MELPA, I got a problem. I'v added
(when (>= emacs-major-version 24)
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
to my ~.emacs.d/init.el. However, when I restart and do M-x package install [RETURN]rust-mode[RETURN], it returns [No Match] and I can't find it when I list the packages. However, I can find it at http://melpa.org/packages/rust-mode-20160106.642.el.
I changed my configuration to prelude's, then the problem is solved, so there must be something wrong with my old configuration, I'll try to find why.
I'm not a good English speaker, sorry for my poor English. Any help is much appreciated; Thank you!