From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Setting sgml-basic-offset in .dir-locals? Date: Fri, 14 Mar 2014 16:34:56 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1394829350 16961 80.91.229.3 (14 Mar 2014 20:35:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2014 20:35:50 +0000 (UTC) To: emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 14 21:36:00 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1WOYpj-0001Ma-UE for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 21:36:00 +0100 Original-Received: from localhost ([::1]:47076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOYpj-000543-Ap for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 16:35:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOYpP-00051U-K3 for help-gnu-emacs@gnu.org; Fri, 14 Mar 2014 16:35:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOYpN-00004s-GO for help-gnu-emacs@gnu.org; Fri, 14 Mar 2014 16:35:39 -0400 Original-Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]:50951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOYpN-0008WP-BC for help-gnu-emacs@gnu.org; Fri, 14 Mar 2014 16:35:37 -0400 Original-Received: by mail-qg0-f45.google.com with SMTP id j5so8882039qga.4 for ; Fri, 14 Mar 2014 13:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=o+8OIrFBqyAduMWiqNXfNbJzaqF9x7iYY7zT0eGy8uQ=; b=jID5esvlsjKTVtS87F1nU6SU2BVjBNAR1F5xbX5buK6xT3PL5lls9unLBZSBuOFd7J 2yC1HD+OwTo9RvXCxf/EjbhEpDkzWa/hpG5Wz4zEcnrSQiU6zCVX+FHMINxXQ4DgWx6u /itu/OfWkCa5Lq7aknROIDogBR7Xg1ugDcxEOlk5DdktzI5pEFqTgnkAkKnbHBTBZnWU QQx35DoCKayO4p3uMBHYjf9yNh9Sq2+t+kagLRMUiELAeO5ZWcO72xPI6XxKE8NlQq+s dUHGSdY8rV3HQ/tkEdaTvPBecVVSUF8zVu7zss2PD4qHpSAlkP3SJpbXACYOpIBbXyh5 47JQ== X-Received: by 10.224.96.138 with SMTP id h10mr12363295qan.46.1394829336189; Fri, 14 Mar 2014 13:35:36 -0700 (PDT) Original-Received: by 10.140.101.151 with HTTP; Fri, 14 Mar 2014 13:34:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96512 Archived-At: Hi Everyone, I'm trying to override my default sgml-basic-offset in .dir-locals. My directory structure is ~/git/{project1,projectn} and I have ~/git/.dir-locals setup like so: ((js-mode . ((js-indent-level . 4))) (html-mode . ((sgml-basic-offset . 4)))) Then I visit a file which is not html by default (a soy file) which starts out in fundamental mode. When I then activate html-mode manually, sgml-basic-offset is not set to 4. How can I achieve my desired results? I would sgml-basic-offset to be set to 4 whenever I turn html-mode on under ~/git. Thanks in advance! -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend less time on mail