package-install 找不到冰柱

package-install can't find icicles

我正在尝试在 Emacs 中安装 icicles,因为我读过它可以提供更清晰的 emacs 体验。问题是,即使我正在加载 Melpa 存储库,并检查了 melpa 包是否可用(它是)如果我尝试对其进行包安装,它 returns [不匹配]​​.

我试过 package-refresh-contents 无济于事。请帮忙解决这个问题,我可以手动完成,但是啊!

仅供参考,这是我的 .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.
 ;;

提前致谢,非常感谢所有帮助

通过在我的 .emacs 上执行 M-x eval-buffer 解决了这个问题。

冰柱不再分布在 ELPA 或 MELPA 上:

NOTE:

Icicles, as well as my other libraries that are on EmacsWiki, used to be obtainable also from MELPA. You may still find some of them there, but they are likely not up-to-date.

As of 2017-10, MELPA has decided to no longer accept Lisp libraries from EmacsWiki. This includes my libraries, even though these libraries are read-only (administrator lock on the wiki pages). Too bad. This means that you must download Icicles and my other libraries only from Emacs Wiki. Sorry about that. I upload Icicles files only to the wiki.

https://www.emacswiki.org/emacs/Icicles_-_Libraries