From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.emacs.devel Subject: Project initialization files? Date: Tue, 17 Jul 2012 10:25:33 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1342545965 28558 80.91.229.3 (17 Jul 2012 17:26:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2012 17:26:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 19:26:02 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrBX8-0007YE-HZ for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 19:26:02 +0200 Original-Received: from localhost ([::1]:57317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrBX7-0002e5-Na for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 13:26:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrBX1-0002cC-Mf for emacs-devel@gnu.org; Tue, 17 Jul 2012 13:25:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrBX0-0005Q0-FO for emacs-devel@gnu.org; Tue, 17 Jul 2012 13:25:55 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:45449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrBX0-0005Pw-AI for emacs-devel@gnu.org; Tue, 17 Jul 2012 13:25:54 -0400 Original-Received: by obhx4 with SMTP id x4so1093084obh.0 for ; Tue, 17 Jul 2012 10:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=XwOIhWBvlP7jUfRmlF3XpeSDDrPzlAk6SaP562kXVk4=; b=ismkm/RC8aXkhTV/HLio4LPC4lyRwENCgDweIyRVbOhccc5WKr4FnTfi2Cika7yF+d tg/SiZmohs8kgmQ7TnjoqTjaALYgoO0L/CB9NUWYKaTcSusaqIzC40fdPiJ8YMdHp1Pk UwjNt3K8P8t4dRzL82DCy6f1svJR1Fe8wrcjb+LCYDdgdKo1DJvLuubtrG3zdor5e1Y9 CCj7iXwT7OYgbsqht5bm120RIN8LJwRePKtYaZAFe8QibPrYGCJN+F/i89VyjfRj8Ofs oJvGy7mAdEPCXfACcVbfdj5sB4snVCIOKNK3wQw8H4ydKCQwC25+2QSOjp/lmC78fVUv r3+w== Original-Received: by 10.182.51.37 with SMTP id h5mr4556561obo.35.1342545953310; Tue, 17 Jul 2012 10:25:53 -0700 (PDT) Original-Received: by 10.76.172.164 with HTTP; Tue, 17 Jul 2012 10:25:33 -0700 (PDT) X-Google-Sender-Auth: nGd35IAVk16dY8KqkTdT8xEbCxA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151709 Archived-At: Hi, I am probably not guessing the correct search term to find prior discussions of what I'm interested in, sorry. Anyway, I work on a number of different projects and each of them have their own favored way of indenting the code. To cope with this, emacs and Vim have mechanisms for automatically formatting the code to the preferred formatting style. All you need is a little comment like "c-file-style: gnu", for example. Well, the Linux kernel has decided to remove these warts, they've never been acceptable at my various employers and often they are not incorporated into projects I play around with. What to do? It seems to me there ought to be some way of saying, "C files in this tree are gnu-style, that tree is Stroustrup and over there use the linux-kernel's favored style. I think it boils down to this question: How hard would it be to set up a personal registry of projects (~/emacs.d/projects) that specified the c-file-style for all .c/.h files in a tree? So if I edit files in ~/my-day-job, I use the "work" style, etc. Does such a thing already exist? EDE isn't quite it and it requires a special file added to the source code to boot. But what I'd like to find ought to be able to pilfer some of that code... Suggestions? Thanks! - Bruce