From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: Project initialization files? Date: Tue, 17 Jul 2012 23:47:58 +0530 Message-ID: <81a9yyp7zd.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342549096 22348 80.91.229.3 (17 Jul 2012 18:18:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2012 18:18:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bruce Korb Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 20:18:16 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 1SrCLd-0005bs-CD for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 20:18:13 +0200 Original-Received: from localhost ([::1]:46721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrCLc-0000a9-L9 for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 14:18:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrCLZ-0000Zq-J8 for emacs-devel@gnu.org; Tue, 17 Jul 2012 14:18:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrCLY-0002pA-F9 for emacs-devel@gnu.org; Tue, 17 Jul 2012 14:18:09 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:62697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrCLY-0002QS-8X; Tue, 17 Jul 2012 14:18:08 -0400 Original-Received: by mail-pb0-f41.google.com with SMTP id rp2so1398163pbb.0 for ; Tue, 17 Jul 2012 11:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=09NYbM3Ag7U7rKRZnI/N6+6kKWNcrj3MTx7vYfZL2Sc=; b=MmtgohQNKGA9lSFKqprccI7hBJCxnynuK7psSgLmhuURoorj+4nHXpuaqAdt6ojIuc OpQK3eGL5bnwJlghFdqP32PZ+gVoYTT+ONUYNU2MTFfRKfdUGld2DrA8HxoN9uYotNww MpFF05NnAzxD4q9XDMsooAqLFKPXx2G48X87YAT8hjpm6EWIPBuXo0X2U8jN1ViP47xN mXLnZXQmMW2i0rKKT3t8brxUvtjg6tgBxU5zqKHYvrriBf9jg2Uj380iojxq9sjhv0ph VZHH/1fyvubT6KUYOKhZZ4qv4PLQTJV08hWZKJ43xkUqnL3of2drL4an1bA7Zp1U2q0r Fq/w== Original-Received: by 10.68.221.38 with SMTP id qb6mr1103426pbc.144.1342549087367; Tue, 17 Jul 2012 11:18:07 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.242.171.124]) by mx.google.com with ESMTPS id rx7sm14466294pbc.64.2012.07.17.11.18.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 11:18:06 -0700 (PDT) In-Reply-To: (Bruce Korb's message of "Tue, 17 Jul 2012 10:25:33 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 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:151712 Archived-At: C-h r g Directory Variables or (info "(emacs) Directory Variables") > 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 > > --