> Now when I try to install swank-clojure, I get the following message -
> File exists: /home/manoj/.emacs.d/elpa/clojure-mode-1.7.1/clojure-
> mode.el
I vaguely recall that I had the same problem and solved it by simply
moving the existing clojure-mode.el out of the way. You can delete it,
if that works.
> But -
> 1) There is no auto indentation (so when I go to the next line, after
> say (defn some[]), it starts with the first col. in this new line)
Could be the job of Paredit (I'm not sure what does what, here).
--
Thorsten Wilms
thorwil's design for free software:
http://thorwil.wordpress.com/
Hi,
>> 1) There is no auto indentation (so when I go to the next line, after
>> say (defn some[]), it starts with the first col. in this new line)
>
> Could be the job of Paredit (I'm not sure what does what, here).
No, paredit has nothing to do with that. He probably goes to the next
line with RET, which is `newline' by default. Maybe he wants to bind
`newline-and-indent' to RET, instead.
(define-key clojure-mode-map (kbd "RET") 'newline-and-indent)
Bye,
Tassilo
> But the same enter key works properly when I am using Lisp, so why
> shouldn't it be the default in Clojure as well?
What's considered "properly" for RET is purely subjective. :-)
But I have to admit that I was wrong. When paredit-mode is enabled, RET
is indeed bound to `paredit-newline', which does indentation
automatically. For me that does the trick for Clojure, Elisp, and CL
buffers...
> Also, after removing clojure-mode, when I try to install swank-
> clojure, it again installs the clojure-mode, but fails to install
> itself?
Do you get some error messages?
Using emacs 24 from bzr, I only added
(add-to-list 'package-archives
'("technomancy" . "http://repo.technomancy.us/emacs/") t)
to get the most recent packages from technomancy listed in M-x
package-list-packages, and there I installed these ones:
clojure-mode 1.8.0 installed Major mode for Clojure code
slime 20100404.1 installed Superior Lisp Interaction Mode for Emacs
slime-repl 20100404 installed Read-Eval-Print Loop written in Emacs Lisp
swank-clojure 1.1.0 installed Slime adapter for clojure
Bye,
Tassilo