简体   繁体   English

Flycheck安装:Mx包安装[不匹配]

[英]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: 什么对我有用:

  1. Mx package-list-packages RET
  2. Find flycheck , mark it with an I 找到flycheck ,用I标记它
  3. Use 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM