From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nix Newsgroups: gmane.emacs.devel Subject: Re: Project initialization files? Date: Sat, 21 Jul 2012 23:06:08 +0100 Message-ID: <878vecixbj.fsf@spindle.srvr.nix> References: <83fw8q9t9c.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342908385 16663 80.91.229.3 (21 Jul 2012 22:06:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2012 22:06:25 +0000 (UTC) Cc: Eli Zaretskii , emacs development To: Bruce Korb Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 22 00:06:24 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 1Sshob-0005Xl-E6 for ged-emacs-devel@m.gmane.org; Sun, 22 Jul 2012 00:06:21 +0200 Original-Received: from localhost ([::1]:41662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sshoa-0008Oy-Gy for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2012 18:06:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SshoY-0008Os-Nm for emacs-devel@gnu.org; Sat, 21 Jul 2012 18:06:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SshoX-0006rI-W6 for emacs-devel@gnu.org; Sat, 21 Jul 2012 18:06:18 -0400 Original-Received: from icebox.esperi.org.uk ([81.187.191.129]:35111 helo=mail.esperi.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SshoW-0006q8-77; Sat, 21 Jul 2012 18:06:16 -0400 Original-Received: from esperi.org.uk (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.5/8.14.5) with ESMTP id q6LM68nQ015063; Sat, 21 Jul 2012 23:06:08 +0100 Original-Received: (from nix@localhost) by esperi.org.uk (8.14.5/8.14.5/Submit) id q6LM68Ho005264; Sat, 21 Jul 2012 23:06:08 +0100 Emacs: freely redistributable; void where prohibited by law. In-Reply-To: (Bruce Korb's message of "Tue, 17 Jul 2012 13:25:26 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-DCC-URT-Metrics: spindle 1060; Body=3 Fuz1=3 Fuz2=3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 81.187.191.129 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:151795 Archived-At: On 17 Jul 2012, Bruce Korb spake thusly: > Hi Eli, > > On Tue, Jul 17, 2012 at 10:45 AM, Eli Zaretskii wrote: >>> ~/my-day-job, I use the "work" style, etc. >>> >>> Does such a thing already exist? > >> Is the .dir-locals.el feature (described in the "Specifying File >> Variables" node of the Emacs manual) fit the bill? If not, why not? > > Only that it entails adding a file to the source tree. Emacs supports 'directory classes', which let you say things like (dir-locals-set-directory-class (expand-file-name "~/a/b/c") 'gnu (dir-locals-set-directory-class (expand-file-name "~/x/y/z") 'linux) (dir-locals-set-directory-class (expand-file-name "~/foo/bar") 'otbs) and then you can say e.g. (dir-locals-set-class-variables 'gnu '((c-mode . ((c-file-style . "gnu") (fill-column . 80) (sentence-end-double-space . t) (indent-tabs-mode . t))))) to set variables in each class to your heart's content, without any need to touch the directories themselves. -- NULL && (void)