Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: Emacs function to indent regions
Home

[Freeciv-Dev] Re: Emacs function to indent regions

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxxxx
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Emacs function to indent regions
From: Gaute B Strokkenes <gs234@xxxxxxxxxxxxxxxx>
Date: 24 Jan 2001 15:40:38 +0000

On Sun, 14 Jan 2001, hawk@xxxxxxxxxxxxxxxxxxxxxxx wrote:

> Based on comments of some list members I wrote some lisp code. It
> inserts some "{" to match up the base level, calls indent(1) and
> removes the "{"s. It will only work if you select a proper
> region. So selecting "if(cond) {block}" is ok while "else {block}"
> will not work.
> 
> I'm a beginner to list so please point out anything which can be
> done better.

Try M-x c-set-style RET k&r RET .  It works for me.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
Is it NOUVELLE CUISINE when 3 olives are struggling with a scallop
 in a plate of SAUCE MORNAY?



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