您如何 "import" github MELPA 获取器?
How do you "import" the github MELPA fetcher?
当我的 .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"))
您的 .emacs
文件中的最后一个表达式似乎来自 idris-mode
的 MELPA 配方。您不需要在初始文件中使用它 - 只需键入 M-x list-packages
,在列表中找到 idris-mode
,然后键入 i x
进行安装。之后,每次启动 Emacs 时,idris-mode
将可用。
当我的 .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"))
您的 .emacs
文件中的最后一个表达式似乎来自 idris-mode
的 MELPA 配方。您不需要在初始文件中使用它 - 只需键入 M-x list-packages
,在列表中找到 idris-mode
,然后键入 i x
进行安装。之后,每次启动 Emacs 时,idris-mode
将可用。