Help with Slime

2008-12-24 Thread kogu

Hi,

This is not clojure related but Slime/Emacs related.

I am using Slime/Emacs/Clojure Mode/Swank Clojure on Windows.

I have a dual monitor setup. So I create a new frame, move that to the
second monitor, and set that to the REPL buffer. This allows me to
work quickly, without switching to various buffers all the time. It
works perfectly under inferior-lisp mode. Code in one display, REPL on
the other.

I have problem with Slime though. In slime, when I run a function in
the main window, the window is split in half with code and REPL
showing in the same display. The other frame, on the second monitor
works fine and updates.

I want to stop this behavior of automatically splitting the window.
The REPL on the other frame updates, so that's not a problem. So when
I run a function (C-M-x), I don't want the window to split.

I have set "pop-up-windows" to nil. Now the window doesn't split, but
the buffer still switches to the REPL buffer. I want this automatic
switching to stop. Can anyone help?

Thanks

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



Re: Help with Slime

2008-12-25 Thread kogu

Hi,

Ok. you need all stuff below, might be redundant, but still. I would
recommend getting everything from VCS, except emacs perhaps.

1. GNU Emacs
2. Slime
3. Clojure
4. Clojure mode
5. Swank Clojure

Below is the relevant part of my init.el. Change paths. Let me know if
you are stuck somewhere.

;;Clojure mode
;;
(add-to-list 'load-path "C:/emacs/lisp/clojure-mode/")
(require 'clojure-auto)
(load-library "clojure-paredit")

;;(setq inferior-lisp-program "java -cp C:/Setup/code/clojure/*;
clojure.lang.Repl")
(show-paren-mode)

(push "C:/emacs/lisp/swank-clojure" load-path)
(require 'swank-clojure-autoload)
(swank-clojure-config
 (setq swank-clojure-jar-path
   "C:/Setup/code/clojure/clojure.jar")
 (setq swank-clojure-extra-classpaths
   (list "C:/Setup/code/clojure/")))

(push "C:/emacs/lisp/slime" load-path)
(require 'slime)
(slime-setup)

kogu

On Dec 25, 8:33 pm, Emeka  wrote:
> Kugo,
>
> Please send me your code and instructions of what you did to get where you
> are? I am even far behind, however, I use windows.
>
> Emeka
>
> On Wed, Dec 24, 2008 at 5:47 PM, kogu  wrote:
>
> > Hi,
>
> > This is not clojure related but Slime/Emacs related.
>
> > I am using Slime/Emacs/Clojure Mode/Swank Clojure on Windows.
>
> > I have a dual monitor setup. So I create a new frame, move that to the
> > second monitor, and set that to the REPL buffer. This allows me to
> > work quickly, without switching to various buffers all the time. It
> > works perfectly under inferior-lisp mode. Code in one display, REPL on
> > the other.
>
> > I have problem with Slime though. In slime, when I run a function in
> > the main window, the window is split in half with code and REPL
> > showing in the same display. The other frame, on the second monitor
> > works fine and updates.
>
> > I want to stop this behavior of automatically splitting the window.
> > The REPL on the other frame updates, so that's not a problem. So when
> > I run a function (C-M-x), I don't want the window to split.
>
> > I have set "pop-up-windows" to nil. Now the window doesn't split, but
> > the buffer still switches to the REPL buffer. I want this automatic
> > switching to stop. Can anyone help?
>
> > Thanks
>
>
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---