I'm using clojure-jack-in with slime-highlight-edits in my slime
config (.emacs). The problem is that the after slime is bootstrapped by jack-in
the highlights show up in every .clj file I'm editing, regardless of
whether or not it is in the project with the slime-connection.
Thoughts/opinions/fixes?
Clearly the solution is to turn off slime-highlight-edits. Although why
is slime bootstrapped on every jack-in? Why not just launch launch
lein-swank in the top level project directory as a process from emacs
and then have elisp to automate slime-connect (w/ port number)?
I think the key issue is that slime integration with clojure-mode seems
to have global effects on all clojure files, which might not be the best
option.
The slime bundling and bootstrapping also seems to be overkill. Am I missing
something?
Here's my slime config:
(setq slime-protocol-version 'ignore)
(add-to-list 'load-path "~/.elisp/slime/")
(add-hook 'slime-repl-mode-hook 'clojure-mode-font-lock-setup)
(require 'slime)
(slime-setup '(slime-repl slime-banner slime-clipboard slime-c-p-c
slime-editing-commands slime-highlight-edits
slime-scratch slime-fontifying-fu))
(setq slime-multiprocessing t)
(set-language-environment "UTF-8")
(setq slime-net-coding-system 'utf-8-unix)
Here's my clojure mode config:
(add-to-list 'load-path "~/src/clj/clojure-mode") ; path to clojure-mode
(require 'clojure-mode)
(add-hook 'clojure-mode-hook
(lambda ()
(highlight-parentheses-mode t)
(paredit-mode t)
(slime-mode t)
(setq hl-parens-colors '("red1" "orange1" "yellow1" "green1"
"cyan1" "slateblue1" "magenta1" "purple"))))
Debug and Version Info
fred.ryleh~$ lein version
Leiningen 1.5.0 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en