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.

-----Original Message-----
From: Menelaos Perdikeas <mperdik...@gmail.com>
Sender: clojure@googlegroups.com
Date: Sat, 25 Aug 2012 22:35:52 
To: <clojure@googlegroups.com>
Reply-To: clojure@googlegroups.com
Subject: emacs error: Package `clojure-mode' is not available for installation

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)                    
                                                                  
          )                                                                     
                                                                  
      )                                                                         
                                                                  
  )                




-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to