all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.