[英]Flycheck installation: M-x package-install [No match]
I'm relatively new to Emacs (and Linux for that matter). 我对Emacs(以及Linux)相对较新。 I'm trying to install flycheck .
我正在尝试安装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). 到我的
.emacs
文件(然后杀死Emacs并重新启动)。
Then Mx package-install RET flycheck RET
. 然后
Mx package-install RET flycheck RET
。 But Emacs says [No match]
. 但是Emacs说
[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). 平台:Emacs 24.3.1,Ubuntu 14.04 LTS 64bit在VMware上运行(Windows 10主机)。
I'm also quite new to emacs, and I've had the same problem. 我也是emacs的新手,我遇到了同样的问题。 What worked for me:
什么对我有用:
Mx package-list-packages RET
flycheck
, mark it with an I
flycheck
,用I
标记它 X
to install marked package. X
安装标记的包。 For reference, this is how I call package
in my .emacs
: 作为参考,这是我在
.emacs
调用package
:
(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)`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.