在OSX 10.6.8上的emacs 24上看不到marmalade repo

时间:2012-02-22 23:01:22

标签: emacs clojure marmalade elpa

我正在尝试设置emacs 24以与osx上的clojure一起使用。我已经从emacsformacosx.com安装了emacs 24,并且我已将以下代码添加到〜/ .emacs.d / init.el:

(require 'package)
(add-to-list 'package-archives
             '("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)

(when (not package-archive-contents)
  (package-refresh-contents))

;; Add in your own as you wish:
(defvar my-packages '(starter-kit starter-kit-lisp)
  "A list of packages to ensure are installed at launch.")

(dolist (p my-packages)
  (when (not (package-installed-p p))
    (package-install p)))

但是,当我执行M-x package-refresh-contents和package-install时,clojure-mode和其他marmalade包都没有显示出来。必须安装入门工具包,因为ido-mode工作,所以我不确定发生了什么。我可以去〜/ .emacs.d / elpa / archive / marmalade,看看包裹在哪里。我有什么想法吗?

1 个答案:

答案 0 :(得分:1)

事实证明

(require 'package)
(add-to-list 'package-archives
             '("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)

需要在〜/ .emacs而不是〜/ .emacs.d / init.el