chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATH] Add an Emacs dir-locals file to enforce pro


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATH] Add an Emacs dir-locals file to enforce project style
Date: Sun, 15 Dec 2013 20:26:46 +0100
User-agent: Mutt/1.4.2.3i

On Sun, Dec 15, 2013 at 02:13:34PM -0500, John Cowan wrote:
> Peter Bex scripsit:
> 
> > Feel free to supply us with a script that does this.
> 
> I want this precisely because I am not an Emacs user, and so don't know
> how to write such a script.

That's nonsensical.  You can use the same tab settings I put in the
emacs file in any other editor.  For the rest, it's just standard
Lisp indentation, like in Riastradh's style guide:
http://mumble.net/~campbell/scheme/style.txt

> > However, requiring Emacs to be installed for people who don't use
> > Emacs is very rude,
> 
> De facto, then, the position is that people who don't otherwise use
> Emacs must learn how to use it anyway in order to correctly format
> their contributions.  That is much ruder.

That's nonsense.  As long as you stick with the style guide above,
you can do it in any editor.  In fact, just today I noticed there are
several "Paredit" implementations for many editors, which will probably
take care of some aspects of indentation, too.

When I posted this patch, I was just concerned with the tab settings.

> With such a script, we can edit with anything and then bring our
> contributions into Emacs format.

There is no way to indent an entire file with Emacs.  It goes completely
fubar on files with embedded C.  Any "special" indentation Emacs does is
at the individual expression level only.

Anyway, why am I telling you how to indent Scheme code?  You're a
Schemer, how the hell are you indenting your files right now?

Cheers,
Peter
-- 
http://www.more-magic.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]