From: Jonathon McKitrick
Subject: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <1136899727.518202.121250@f14g2000cwb.googlegroups.com>
I got tired of justifying why I'd rather use vim for Lisp development,
so I made the switch, with some patient help from drewc.

I'm following the guide at telent.net, but I'm open to suggestions for
anyone that has a good dotfile to get started.  I used Xemacs for quite
a while before, so I'm sure the muscle memory will return soon enough.
But any goodies specifically for Lisp and/or Slime are welcome.

From: ········@gmail.com
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <1136938697.874033.320170@g43g2000cwa.googlegroups.com>
Hey Jonathan,

Check out

    http://www.cliki.net/Editing%20Lisp%20Code%20with%20Emacs

and if things get too rough

    http://billharlan.com/pub/emacs/

;-)

Nick
From: William Bland
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <pan.2006.01.11.00.26.48.540927@gmail.com>
On Tue, 10 Jan 2006 16:18:17 -0800, nallen05 wrote:

> and if things get too rough
> 
>     http://billharlan.com/pub/emacs/

This reminds me of something I've been wondering for a while.  I've been
using Emacs for about six years now, and I wouldn't give it up for
anything else.  But I do sometimes wonder what it's doing to my fingers. 
I have caps-lock mapped to control, but my left little-finger still hurts
sometimes.  Is there a way to make the various modifier keys sticky?  Has
anyone here tried it?  Does it help?

Thanks and best wishes,
	Bill.
From: Jonathon McKitrick
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <1136949444.419198.300390@g43g2000cwa.googlegroups.com>
William Bland wrote:
> I have caps-lock mapped to control, but my left little-finger still hurts
> sometimes.  Is there a way to make the various modifier keys sticky?  Has
> anyone here tried it?  Does it help?

I'm waiting for mine to start hurting.  That's why I was using Xemacs
before.  The only choice with gnuemacs is one of those external keymap
utilities, IIRC.
From: David Douthitt
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <1136999270.175285.178890@f14g2000cwb.googlegroups.com>
William Bland wrote:
> Is there a way to make the various modifier keys sticky?  Has
> anyone here tried it?  Does it help?

Depending on which software you are using, the operating system should
have some sort of "sticky keys" for the disabled.  Both Windows and
MacOS X have these.  I think X11 does too, somewhere.  Yet, I'm not
sure that the UNIX command line does.
From: David Douthitt
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <1136999391.994049.203240@o13g2000cwo.googlegroups.com>
Jonathon McKitrick wrote:
> I got tired of justifying why I'd rather use vim for Lisp development,
> so I made the switch

Have you tried viper?  I don't know how it would interact with SLIME,
but I find using Emacs to be much nicer when using viper.

How does viper and SLIME work together?  Do they?
From: Ulrich Hobelmann
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <42l0h9F1j6lkrU1@individual.net>
David Douthitt wrote:
> Jonathon McKitrick wrote:
>> I got tired of justifying why I'd rather use vim for Lisp development,
>> so I made the switch
> 
> Have you tried viper?  I don't know how it would interact with SLIME,
> but I find using Emacs to be much nicer when using viper.
> 
> How does viper and SLIME work together?  Do they?

I haven't used VIPER for quite a while, but isn't it just a minor mode? 
  Most SLIME is just key bindings (Emacs style) for functions, so I 
don't see why it shouldn't work in VIPER mode (which doesn't really use 
Emacs-style key-bindings).

-- 
the bottom line is that a JavaSchool that won't teach C and won't teach
Scheme is not really teaching computer science, either.  --  Joel Spolsky
From: Tim X
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <87u0c44dbi.fsf@tiger.rapttech.com.au>
"Jonathon McKitrick" <···········@bigfoot.com> writes:

> I got tired of justifying why I'd rather use vim for Lisp development,
> so I made the switch, with some patient help from drewc.
> 
> I'm following the guide at telent.net, but I'm open to suggestions for
> anyone that has a good dotfile to get started.  I used Xemacs for quite
> a while before, so I'm sure the muscle memory will return soon enough.
> But any goodies specifically for Lisp and/or Slime are welcome.
> 

check out paredit mode. I've recently started using it and find it
very nice for keeping your parens balanced - I really like the fact
that if you have something like

(defun myfun ()
  (let (...
   .....
   (some-form)))

and you put the cursor at the beginning of (lets say) the last line
and do a kill line, you will end up with

(defun myfun ()
   (let (...
    ....
    ))

i.e. it only kills the parens associated with the form you have just
deleted. You can also raise/lower sexps with a single keystroke plus
lots of other nice things - for example, since it keeps parens
balanced by inserting pairs when you hit (, you don't need to close
with ), but I often forget and hit it, but the mode is smart enough to
tell that my aprens are already balanced and so does nothing. 

It certainly takes away any pain associated with parens (not that I
ever thought there was any of course!).

Tim

-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!
From: Ulrich Hobelmann
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <431gadF1lqe75U1@individual.net>
Tim X wrote:
> lots of other nice things - for example, since it keeps parens
> balanced by inserting pairs when you hit (, you don't need to close
> with ), but I often forget and hit it, but the mode is smart enough to
> tell that my aprens are already balanced and so does nothing. 

Actually if you hit ")" it moves the cursor past the current s-exp's 
closing paren, makes a newline and reindents (for version 16, that is). 
  Sometimes I find that annoying and just hit right-arrow and space 
instead, to keep typing on the same line.

-- 
The problems of the real world are primarily those you are left with
when you refuse to apply their effective solutions.
	Edsger W. Dijkstra
From: Vasile Rotaru
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <pan.2006.01.17.02.54.07.902562@seznam.cz>
On Mon, 16 Jan 2006 13:02:20 +0100, Ulrich Hobelmann wrote:

> Tim X wrote:
>> lots of other nice things - for example, since it keeps parens balanced
>> by inserting pairs when you hit (, you don't need to close with ), but I
>> often forget and hit it, but the mode is smart enough to tell that my
>> aprens are already balanced and so does nothing.
> 
> Actually if you hit ")" it moves the cursor past the current s-exp's
> closing paren, makes a newline and reindents (for version 16, that is).
>   Sometimes I find that annoying and just hit right-arrow and space
> instead, to keep typing on the same line.

(defun init-back-just-one-space ()
  "Deletes bakward all whitespace characters (including newlines)
and insert one space"
  (interactive)
  (kill-region (point)
	       (1+ (re-search-backward "[^ \t\n]")))
  (forward-char)
  (insert " "))
      
(global-set-key "\M-\ " 'init-back-just-one-space)

For me is more convenient to press a "\M-\ " after a "\M-)", if I want to
stay on the same line... Same for quotes.

(defun init-insert-quotes ()
  "Make the M-\" do The Right Thing(TM). Insert a pair of quotes and
places the point between them.  Or leave the quotes, insert newline
and indents."
  (interactive)
  (if (looking-at "\"")
      (progn
	  (forward-char)
	  (newline-and-indent)
	  )
    (progn
	(insert "\"\"")
	(backward-char))))

(global-set-key "\M-\"" 'init-insert-quotes)

-- 
                                                     If in doubt, enjoy it.

_________________________________________
Usenet Zone Free Binaries Usenet Server
More than 140,000 groups
Unlimited download
http://www.usenetzone.com to open account
From: Ulrich Hobelmann
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <433hiiF1l8rq8U1@individual.net>
Vasile Rotaru wrote:
> (defun init-back-just-one-space ()
>   "Deletes bakward all whitespace characters (including newlines)
> and insert one space"
>   (interactive)
>   (kill-region (point)
> 	       (1+ (re-search-backward "[^ \t\n]")))
>   (forward-char)
>   (insert " "))
>       
> (global-set-key "\M-\ " 'init-back-just-one-space)
> 
> For me is more convenient to press a "\M-\ " after a "\M-)", if I want to
> stay on the same line... Same for quotes.

Great stuff.  Added to .emacs :)

I don't get your quote thing though.  Doesn't paredit do something like 
that already?

-- 
The problems of the real world are primarily those you are left with
when you refuse to apply their effective solutions.
	Edsger W. Dijkstra
From: Vasile Rotaru
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <pan.2006.01.17.21.18.23.771739@seznam.cz>
On Tue, 17 Jan 2006 07:36:02 +0100, Ulrich Hobelmann wrote:

> I don't get your quote thing though.  Doesn't paredit do something like
> that already?

In all honesty, I just don't know what paredit does with the quotes.. 
But you have aroused my curiosity :)

-- 
                                                     If in doubt, enjoy it.

_________________________________________
Usenet Zone Free Binaries Usenet Server
More than 140,000 groups
Unlimited download
http://www.usenetzone.com to open account
From: Taylor Campbell
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <2006012511190816807%riastradh@gmailcom>
(OK, so I said elsewhere that I'd be unlikely to post to c.l.l further, 
but out of curiosity I went and searched for "paredit" in Google 
Groups...  Still, feedback and questions about paredit should be 
addressed to me by email, or on IRC in the #paredit channel on 
irc.freenode.net.)

Regarding the newline-and-indent behaviour of closing parentheses:  
There is also a binding for M-), paredit-close-list, which does the 
same thing as ), paredit-close-list-and-newline, but without the 
newline part; that is, it deletes all whitespace leading up to the 
closing parenthesis (although it leaves comments intact), and then just 
moves past the closing parenthesis.  I prefer the )-for-newline and 
M-)-for-no-newline behaviour, since I've found the latter to be less 
common, but anyone is free to exchange & redefine the keys for personal 
preferences, of course.

As for the quote stuff, paredit's bindings for " and M-" already handle 
magic behaviour of inserting balanced pairs and jumping out from within 
a string: " or M-" outside a string will insert a pair of 
double-quotes; " from within a string will insert an escaped 
double-quote; and M-" from within a string will jump to the end of the 
string, add a newline, and indent.

Also, in the latest paredit.el beta (18), at 
<http://mumble.net/~campbell/emacs/paredit-beta.el>, M-" outside a 
string will wrap the following S-expression in double-quotes, rather 
than just inserting a pair, and " can also accept a prefix argument N 
to wrap N S-expressions in double-quotes.  They safely handle escaping 
any intermediate characters if necessary, too.

Someone asked about paredit.el for XEmacs, too:  I'm afraid that there 
is no such thing at the moment.  I was talking to someone earlier today 
who uses XEmacs and who was trying to make it work in it, but I don't 
know how far he got.  There are some unfortunate differences between 
GNU Emacs and XEmacs that are hard to reconcile without resorting to 
inserting compatibility conditionals into the file, which I'd really 
rather avoid.  If anyone would like to volunteer to help making 
paredit.el more portable, feel free to do so, but unfortunately some of 
the changes which paredit.el can't work around would have to be in GNU 
Emacs or XEmacs.
From: Julian Stecklina
Subject: Re: Finally did it... goodbye vim, hello SLIME
Date: 
Message-ID: <86lkxal894.fsf@dellbeast.localnet>
Tim X <····@spamto.devnul.com> writes:

> check out paredit mode. I've recently started using it and find it
> very nice for keeping your parens balanced - I really like the fact
> that if you have something like
[...]

The paredit.el says that it only runs on FSF Emacs. Is there an XEmacs
version around?

Regards,
-- 
Julian Stecklina

"I object to doing things that computers can do." - Olin Shivers