Here's a .emacs snippet that works for me: ;; SLIME setup (clojure) (add-to-list 'load-path "~/.emacs.d/slime/") ; your SLIME directory (add-to-list 'load-path "~/.emacs.d/") ; clojure-mode.el is here (add-to-list 'load-path "~/.emacs.d/swank-clojure") ; swank-clojure directory (setq swank-clojure-binary "~/bin/clojure") ; shell script that invokes clojure (require 'clojure-mode) (require 'swank-clojure-autoload) (require 'slime)
(eval-after-load "slime" '(progn (add-to-list 'load-path "~/.emacs.d/slime/contrib") (slime-setup '(slime-fancy slime-banner)) (setq slime-complete-symbol*-fancy t) (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol))) You can of course remove the "slime-fancy" and the "slime-banner" if you wish. I hope this helps --Chris On Tue, Apr 28, 2009 at 1:28 PM, Baishampayan Ghose <b.gh...@ocricket.com> wrote: > > Phil, > >> I suspect the problem might have to do with the fact that you're >> configuring slime for both SBCL and Clojure. I know it's possible to >> get this working, but it's a lot more complicated that way. I'd >> suggest having one file for clojure slime config and one for sbcl, and >> only load one of them per Emacs instance. >> >> I'm sure someone who's more familiar with SLIME and Common Lisp could >> figure out a solution, but this seems like simplest solution. > > My eyes lit up for a second! I removed all SBCL support from SLIME and > it still doesn't work :( > > Can you kindly share your working dotfiles and enlighten me? > > My current .emacs has this: > ;;; > > (require 'slime) > (slime-setup '(slime-fancy slime-banner slime-mdot-fu)) > > (defvar slime-net-coding-system > (find-if 'slime-find-coding-system > '(utf-8-unix iso-latin-1-unix iso-8859-1-unix binary))) > > ;;; Clojure specific > (defvar clj-root (concat (expand-file-name "~") "/clojure/")) > (setq load-path (append > (list (concat clj-root "clojure-mode") > (concat clj-root "swank-clojure")) > load-path)) > > (setq swank-clojure-binary "clojure") > > (require 'swank-clojure-autoload) > > (add-to-list 'slime-lisp-implementations > '(clojure ("/home/ghoseb/bin/clojure") :init > swank-clojure-init)) > > (require 'clojure-mode) > (eval-after-load 'clojure-mode '(clojure-slime-config)) > > (autoload 'clojure-mode "clojure-mode" "A major mode for Clojure" t) > (add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode)) > > (defun lisp-enable-paredit-hook () > (paredit-mode 1)) > > (add-hook 'clojure-mode-hook 'lisp-enable-paredit-hook) > > (defun clj () > "Starts Clojure in Slime" > (interactive) > (slime 'clojure)) > ;;; > > Regards, > BG > > -- > Baishampayan Ghose <b.gh...@ocricket.com> > oCricket.com > > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---