我正试图在Emacs中安装冰柱,因为我已经读过它使emacs体验更加清晰。问题是,即使我正在加载Melpa存储库,并检查是否该软件包可用(它是),如果我尝试包-安装在它上,它返回不匹配。
我尝试过包刷新内容,但是没有用。请帮忙,我可以手动做,但是啊!
关于上下文,下面是我的.emacs上的内容:
;; packages
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("org" . "http://orgmode.org/elpa/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(add-to-list 'load-path "~/.emacs.d/elisp")
(defun require-package (package)
(setq-default highlight-tabs t)
"Install given PACKAGE."
(unless (package-installed-p package)
(unless (assoc package package-archive-contents)
(package-refresh-contents))
(package-install package)))
(package-initialize)
(load-theme 'zenburn t)
(require 'php-mode)
(eval-after-load 'php-mode
'(require 'php-ext))
(add-to-list 'auto-mode-alist '("\\.json$" . js-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.
'(custom-safe-themes (quote ("f5eb916f6bd4e743206913e6f28051249de8ccfd070eae47b5bde31ee813d55f" default))))
(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.
;;谢谢您的帮助,非常感谢。
发布于 2015-11-25 21:27:05
通过在我的.emacs上执行my标准缓冲区解决了这个问题。
发布于 2021-05-05 00:44:25
冰柱不再分布在ELPA或MELPA上:
注:冰柱,以及我在EmacsWiki上的其他库,过去也可以从MELPA获得。你可能还会在那里发现其中的一些,但它们可能并不是最新的。从2017到10年间,MELPA决定不再接受来自EmacsWiki的Lisp库。这包括我的库,即使这些库是只读的(管理员锁定在wiki页面上)。太可惜了。这意味着您必须只从Emacs下载冰柱和我的其他库。真对不起。我只把冰柱文件上传到wiki。
https://stackoverflow.com/questions/33907769
复制相似问题