简体   繁体   English

您如何“导入” github MELPA提取程序?

[英]How do you “import” the github MELPA fetcher?

I get Symbol's value as variable is void: github when I have the following in my .emacs file (the error comes from the last expression): 当我的.emacs文件中包含以下内容时,我得到Symbol's value as variable is void: github (错误来自最后一个表达式):

(require 'package)
(add-to-list 'package-archives
             '("MELPA Stable" . "http://stable.melpa.org/packages/") t)
(add-to-list 'package-archives
             '("gnu" . "http://elpa.gnu.org/packages/") t )

(package-initialize)
(package-refresh-contents)

(package-install 'flycheck)

(global-flycheck-mode)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(package-selected-packages (quote (haskell-mode idris-mode flycheck))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(add-hook 'after-init-hook #'global-flycheck-mode)

(idris-mode
 :repo "idris-hackers/idris-mode"
 :fetcher github
 :files (:defaults "logo-small.png"))

It looks like the last expression in your .emacs file comes from the MELPA recipe for idris-mode . 看来您的.emacs文件中的最后一个表达式来自idris-mode的MELPA配方。 You don't need that in your init file - just type Mx list-packages , find idris-mode in the list, and install it by typing ix . 您不需要在init文件中使用它-只需键入Mx list-packages ,在列表中找到idris-mode ,然后通过输入ix安装。 After that, idris-mode will be available every time you start Emacs. 之后,每次启动Emacs时都可以使用idris-mode

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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