unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: ad <as@no-span.org>
Subject: indentation in jde/java mode
Date: Sun, 25 Apr 2004 23:07:01 -0400	[thread overview]
Message-ID: <pan.2004.04.26.03.07.01.63903@no-span.org> (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.

             reply	other threads:[~2004-04-26  3:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-26  3:07 ad [this message]
2004-04-26  8:30 ` indentation in jde/java mode 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pan.2004.04.26.03.07.01.63903@no-span.org \
    --to=as@no-span.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).