all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Dziulko <dziulko@klaatu.canisius.edu>
Subject: Re: java mode won't play nice
Date: Wed, 28 May 2003 13:58:23 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0305281356190.15830-100000@klaatu.canisius.edu> (raw)
In-Reply-To: <ubrxndqmg.fsf@softechnics.com>

Looks interesting, but seems to be over-kill for me.  I just want 
indentation to behave like in c-mode, don't care about other features.


On Wed, 28 May 2003, Jeffery B. Rancier wrote:

> Kevin Dziulko <dziulko@klaatu.canisius.edu> writes:
> 
> Have you looked at the JDEE at http://jdee.sunsite.dk?
> 
> > Hello
> >
> > I am trying to get java mode to indent and behave just like how I have 
> > c-mode set up.  I have not been able to find anything helpful on the web.  
> > I did read that "`java-mode' sets the style ... of the buffer to `java' *before*
> >  running the `c-mode-common-hook' or `java-mode-hook'".  Any suggestions?  
> > Below is my c-mode stuff from my .emacs file. 
> >
> > (defconst my-c-style
> >   '((c-tab-always-indent        . t)
> >     (c-comment-only-line-offset . 0)
> >     (c-hanging-braces-alist     . ((substatement-open after)
> >                                    (brace-list-open)
> >                                    (brace-list-close)))
> >     (c-hanging-colons-alist     . ((member-init-intro before)
> >                                    (inher-intro)
> >                                    (case-label after)
> >                                    (label after)
> >                                    (access-label after)))
> >     (c-cleanup-list             . (scope-operator
> >                                    empty-defun-braces
> >                                    defun-close-semi))
> >     (c-offsets-alist            . ((arglist-close . c-lineup-arglist)
> >                                    (substatement-open . 0)
> >                                    (case-label        . 4)
> >                                    (block-open        . 0)
> >                                    (knr-argdecl-intro . -)))
> >     ;;(c-echo-syntactic-information-p . t)
> >     )
> >   "My C Programming Style")
> >
> > ;; Customizations for all of c-mode, c++-mode, and objc-mode
> > (defun my-c-mode-common-hook ()
> >   ;; add my personal style and set it for the current buffer
> >   (c-add-style "PERSONAL" my-c-style t)
> >   ;; offset customizations not in my-c-style
> >   (c-set-offset 'member-init-intro '++)
> >   ;; other customizations
> >   (setq ps-line-number 'member-init-intro)
> >   (setq tab-width 8
> >         ;; this will make sure spaces are used instead of tabs
> >         indent-tabs-mode nil)
> >   ;; we like auto-newline and hungry-delete
> >   (c-toggle-auto-hungry-state 1)
> >   ;; keybindings for all supported languages.  We can put these in
> >   ;; c-mode-base-map because c-mode-map, c++-mode-map, objc-mode-map,
> >   ;; java-mode-map, and idl-mode-map inherit from it.
> >   (define-key c-mode-base-map "\C-m" 'newline-and-indent)
> >   (define-key c-mode-base-map "\C-xc" 'kill-comment)
> >   )
> > (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
> 
> 

       reply	other threads:[~2003-05-28 17:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ubrxndqmg.fsf@softechnics.com>
2003-05-28 17:58 ` Kevin Dziulko [this message]
     [not found] <mailman.6908.1054124887.21513.help-gnu-emacs@gnu.org>
2003-05-29 20:36 ` java mode won't play nice Artur Hefczyc
2003-05-30 12:14   ` Kevin Dziulko
2003-05-28 12:27 Kevin Dziulko

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

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

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0305281356190.15830-100000@klaatu.canisius.edu \
    --to=dziulko@klaatu.canisius.edu \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.