I'm relatively new to Emacs (and Linux for that matter). I'm trying to install flycheck. Following the installation instructions, I added
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
to my .emacs
file (then killed Emacs and restarted).
Then M-x package-install RET flycheck RET
. But Emacs says [No match]
. Any ideas what I'm doing wrong?
Platform: Emacs 24.3.1, Ubuntu 14.04 LTS 64bit running on VMware (Windows 10 host).
I'm also quite new to emacs, and I've had the same problem. What worked for me:
M-x package-list-packages RET
flycheck
, mark it with an I
X
to install marked package.For reference, this is how I call package
in my .emacs
:
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/"))
(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)`