emacs error: Package `clojure-mode' is not available for installation

157 views
Skip to first unread message

Menelaos Perdikeas

unread,
Aug 25, 2012, 6:35:52 PM8/25/12
to clo...@googlegroups.com
I am following the instructions on:

https://github.com/technomancy/clojure-mode/blob/master/README.md

on how to setup emacs with Clojure-mode.
I am running GNU Emacs 23.3.1 in Ubuntu. Launching my Emacs fails with:

error: Package `clojure-mode' is not available for installation


The relevant section of my .emacs file is:

(if
(= emacs-major-version 23)
(load "package")
)

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

(progn ;; Clojure mode and Paredit
(when (not (package-installed-p 'clojure-mode))
(package-install 'clojure-mode))
(if nil ;; turn Paredit off for now
(when (not (package-installed-p 'paredit))
(package-install 'paredit)
)
(progn ;; Paredit
;; (require 'paredit) if you didn't install via package.el
(defun turn-on-paredit () (paredit-mode 1))
(add-hook 'clojure-mode-hook 'turn-on-paredit)
)
)
)




Peter Buckley

unread,
Aug 25, 2012, 7:20:53 PM8/25/12
to clo...@googlegroups.com
I had various issues with clojure-mode, swank, slime, etc. with emacs 23 until I switched to emacs 24.

Emacs 24 is much simpler to download now (don't have to compile from source) and is likely the quickest solution to all your clojure/emacs issues.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
Reply all
Reply to author
Forward
0 new messages