[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent amount in Java mode
From: |
Kai Großjohann |
Subject: |
Re: indent amount in Java mode |
Date: |
Mon, 21 Jul 2003 22:11:11 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
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.
--
~/.signature