help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indenting with spaces


From: Tassilo Horn
Subject: Re: indenting with spaces
Date: Tue, 19 Jan 2010 17:44:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

andrea <andrea.crotti.0@gmail.com> writes:

Hi Andrea,

> Everything works fine, but NOT with JDE.
> For some reasons it wants to use tabs, I also did this
>
> (add-hook 'jde-mode-hook
>         '(lambda () (require 'ecb))
>         '(lambda () (setq indent-tabs-mode nil)))

This won't work.  `add-hook' only accepts one function, so try that:

--8<---------------cut here---------------start------------->8---
(add-hook 'jde-mode-hook
          (lambda ()
            (require 'ecb)
            (setq indent-tabs-mode nil)))
--8<---------------cut here---------------end--------------->8---

> But no way, it still set indent-tabs-mode to t, any idea of why it
> should do that?

No, it shouldn't do that.  Does it set it buffer-locally, or globally?
That would be even more impolite.

Bye,
Tassilo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]