From: .Martin. on
Hi all,
I've got a newbie question: What is slime-mode? I mean I normally start
slime by M-x slime.
When I issue M-x slime-mode it enables slime mode. Do I have to do
enable it?
The whole slime thing is still very confusing for me.
That's my .emacs:

,----
| ;; Lisp
| (setq inferior-lisp-program "sbcl")
| (add-to-list 'load-path "/home/martin/.emacs.d/slime/")
| (require 'slime-autoloads)
| (slime-setup '(slime-fancy))
`----

Thank you

--
regards

..Martin.
From: Paul Donnelly on
xtd8865(a)gmail.com (.Martin.) writes:

> Hi all,
> I've got a newbie question: What is slime-mode? I mean I normally start
> slime by M-x slime.
> When I issue M-x slime-mode it enables slime mode. Do I have to do
> enable it?

Open a Common Lisp file then press C-h m to see what modes are
enabled. I don't think you'll have to do anything more than what you've
already done to enable it.
From: .Martin. on
Paul Donnelly <paul-donnelly(a)sbcglobal.net> writes:

> xtd8865(a)gmail.com (.Martin.) writes:
>
>> Hi all,
>> I've got a newbie question: What is slime-mode? I mean I normally start
>> slime by M-x slime.
>> When I issue M-x slime-mode it enables slime mode. Do I have to do
>> enable it?
>
> Open a Common Lisp file then press C-h m to see what modes are
> enabled. I don't think you'll have to do anything more than what you've
> already done to enable it.

These are enabled modes:
,----
| Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
| Blink-Cursor Eldoc File-Name-Shadow Font-Lock Global-Auto-Composition
| Global-Font-Lock Line-Number Menu-Bar Mouse-Wheel Slime-Editing
| Slime-Repl-Map Tool-Bar Tooltip Transient-Mark
`----

And the status bar shows:
,----
| *slime-repl sbcl* All L2 (REPL Autodoc)
`----


After issuing M-x slime-mode, it adds 'slime' to the lisp of enabled
modes and the status bar shows:

,----
| *slime-repl sbcl* All L2 (REPL Autodoc {COMMON-LISP-USER sbcl})
`----


What does it all means for me?
Is there anything that you'd recommend to add to the lisp entry in my
..emacs?

thank you





--
regards

..Martin.
From: Paul Donnelly on
xtd8865(a)gmail.com (.Martin.) writes:

> Paul Donnelly <paul-donnelly(a)sbcglobal.net> writes:
>
>> xtd8865(a)gmail.com (.Martin.) writes:
>>
>>> Hi all,
>>> I've got a newbie question: What is slime-mode? I mean I normally start
>>> slime by M-x slime.
>>> When I issue M-x slime-mode it enables slime mode. Do I have to do
>>> enable it?
>>
>> Open a Common Lisp file then press C-h m to see what modes are
>> enabled. I don't think you'll have to do anything more than what you've
>> already done to enable it.
>
> These are enabled modes:
> ,----
> | Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
> | Blink-Cursor Eldoc File-Name-Shadow Font-Lock Global-Auto-Composition
> | Global-Font-Lock Line-Number Menu-Bar Mouse-Wheel Slime-Editing
> | Slime-Repl-Map Tool-Bar Tooltip Transient-Mark
> `----
>
> And the status bar shows:
> ,----
> | *slime-repl sbcl* All L2 (REPL Autodoc)
> `----
>
>
> After issuing M-x slime-mode, it adds 'slime' to the lisp of enabled
> modes and the status bar shows:
>
> ,----
> | *slime-repl sbcl* All L2 (REPL Autodoc {COMMON-LISP-USER sbcl})
> `----
>
>
> What does it all means for me?
> Is there anything that you'd recommend to add to the lisp entry in my
> .emacs?

It means you need to open a Lisp file and take a look at the modes
active when editing Lisp code, if you want to know about them. You've
just looked at the REPL.

Really, I'm sure it's fine. You'd probably have to go out of your way to
screw something.
From: Captain Obvious on
M> I've got a newbie question: What is slime-mode?

slime-mode is a mode for editing Lisp files, it enables SLIME keybindings
and stuff like that.

M> I mean I normally start slime by M-x slime.

This starts SLIME REPL -- a thing where you type commands. When you start
it, it starts a new Lisp instance and connects to it, so REPL is associated
with a running Lisp instance.

Usually, you have SLIME REPL and some Lisp files you edit, and you do
development interactively -- after you've done editing some function, you
press C-c C-c while cursor is inside that function, and it will be compiled
by the Lisp instance. Then you can try this function in REPL.

But you can have SLIME REPL without files to edit, or you can edit files
without REPL.
So they are like two independent features of SLIME, but usually they are
used together.

M> Do I have to do enable it?

No, it is enabled automatically for .lisp files. E.g. if you open foo.lisp,
it will automatically use lisp-mode and slime-mode, so you can use keys like
C-c C-c, C-M-x and so on.

M> (slime-setup '(slime-fancy))

This command makes slime-mode loading automatically for lisp files (among
other things).

 |  Next  |  Last
Pages: 1 2
Prev: dpANS copyright status (again)
Next: linux .emacs file