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

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.