I'm trying to set up emacs 24 to use with clojure on osx. I've installed emacs 24 from emacsformacosx.com, and I've added the following code to ~/.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)))

However when I do M-x package-refresh-contents, and package-install, clojure-mode and the other marmalade packages don't show up. The starter kit must be installed since ido-mode works, so I'm not sure what's happening. I can go to ~/.emacs.d/elpa/archive/marmalade and see that the packages are there. Any ideas what I'm doing wrong?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top