unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* indentation in jde/java mode
@ 2004-04-26  3:07 ad
  2004-04-26  8:30 ` Alan Mackenzie
  0 siblings, 1 reply; 7+ messages in thread
From: ad @ 2004-04-26  3:07 UTC (permalink / raw)


Hi,

I am running "GNU Emacs 21.3.1" in my debian box. I have the following
in my ".emacs" file to use 2 char indentation for my java files:

(defun my-jde-mode-hook ()
	(setq c-basic-offset 2))

(add-hook 'jde-mode-hook 'my-jde-mode-hook)
(add-hook 'java-mode-hook 'my-jde-mode-hook)


This seems to be working fine when I edit/view files with emacs, but
when I look at the files with other editors or viewers, like "less",
I see the indentation is actually 8.

It seems like when the file is saved, the indentation is changing to
8.

Am I doing something wrong within my ".emacs"?

Thank you.

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

end of thread, other threads:[~2004-04-28 23:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-26  3:07 indentation in jde/java mode ad
2004-04-26  8:30 ` Alan Mackenzie
2004-04-27  2:15   ` ad
2004-04-27  6:50     ` Alan Mackenzie
2004-04-28  2:55       ` ad
2004-04-28 18:02         ` Alan Mackenzie
2004-04-28 23:08           ` ad

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