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

[Freeciv-Dev] Emacs function to indent regions

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Emacs function to indent regions
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 Jan 2001 22:17:15 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxxxx

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.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Transported to a surreal landscape, a young girl kills the first woman
  she meets and then teams up with three complete strangers to kill again."
    -- TV listing for the Wizard of Oz in the Marin Independent Journal

Attachment: emacs-indent-function.lisp
Description: Text document


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