unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting sgml-basic-offset in .dir-locals?
@ 2014-03-14 20:34 Tim Visher
  0 siblings, 0 replies; only message in thread
From: Tim Visher @ 2014-03-14 20:34 UTC (permalink / raw)
  To: emacs

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-14 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14 20:34 Setting sgml-basic-offset in .dir-locals? Tim Visher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).