unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* indent for css-mode
@ 2013-10-30  2:14 ishi soichi
  2013-10-30  3:02 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: ishi soichi @ 2013-10-30  2:14 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Emacs24.3

I am trying to set the indent level of css-mode to 2 spaces.

;; css-mode
(add-hook 'css-mode-hook
      '(lambda()
        (setq c-basic-offset 2)
        (setq indent-tabs-mode nil)))

does not do as I want it to.

css-mode is the default one that comes with Emacs24.

Could anyone help me out?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: indent for css-mode
  2013-10-30  2:14 indent for css-mode ishi soichi
@ 2013-10-30  3:02 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-10-30  3:02 UTC (permalink / raw)
  To: help-gnu-emacs

> (add-hook 'css-mode-hook
>       (lambda ()
>         (setq c-basic-offset 2)
>         (setq indent-tabs-mode nil)))

The relevant variable is called css-indent-offset.
And please don't quote your lambdas.


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-30  3:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30  2:14 indent for css-mode ishi soichi
2013-10-30  3:02 ` Stefan Monnier

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).