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

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

Re: indent amount in Java mode


From: Lloyd
Subject: Re: indent amount in Java mode
Date: Mon, 21 Jul 2003 21:51:03 GMT
User-agent: KNode/0.7.2

Kai Großjohann wrote:

> Lloyd <nospam@nospam.org> writes:
> 
>> I never see this in any Emacs FAQs that I can find, but here goes: how do
>> I
>> adjust the indent amount in Java mode?  It's on 4 columns, but I would
>> like to switch it to 2.
> 
> (require 'cc-mode)
> (defun ll-java-indent-setup ()
>   (setq c-basic-offset 2))
> (add-hook 'java-mode-hook 'll-java-indent-setup)
> 
> Other useful things, especially c-set-style statements and
> c-set-offset statements, are explained in the CC mode info file, node
> Customization.

Thanks much.  After looking at this, I saw some stuff with regards to
customization buffers, and I hope that the setting wasn't inside one of
them.


lmh
-- 
reply to El Em Aitch 2671772 at-sign sbcglobal period net (no spaces)


reply via email to

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