首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >您是如何“导入”github MELPA获取器的?

您是如何“导入”github MELPA获取器的?
EN

Stack Overflow用户
提问于 2018-05-10 16:03:15
回答 1查看 190关注 0票数 1

当我的Symbol's value as variable is void: github文件中有以下内容时,我得到.emacs (错误来自最后一个表达式):

代码语言:javascript
复制
(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"))
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-10 16:27:42

看起来,.emacs文件中的最后一个表达式来自idris-mode的MELPA配方。您不需要在init文件中这样做--只需输入M-x list-packages,在列表中找到idris-mode,然后输入i x安装它。之后,每次启动Emacs时,idris-mode都是可用的。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50277018

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档