all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem indenting nested Java annotations
@ 2017-05-02 18:25 Steinar Bang
  0 siblings, 0 replies; only message in thread
From: Steinar Bang @ 2017-05-02 18:25 UTC (permalink / raw)
  To: help-gnu-emacs

Platform: GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-11-15
          CC Mode version 5.33

I have the following nested Java annotations, that I would like indented thus:

@Properties({ @Property(name = Constants.PROPERTY_NAME, value = "propval"),
              @Property(name = Constants.PROPERTY_NAME2, value = "propval2")})
@Named("hello2")
public class HelloServiceProviderNamedAndPropertiesHello2 implements Provider<HelloService>, HelloService {

    public String getMessage() {
        return "Hello2 says hi!";
    }

}

Instead, I get the following:

@Properties({ @Property(name = Constants.PROPERTY_NAME, value = "propval"),
            @Property(name = Constants.PROPERTY_NAME2, value = "propval2")})
            @Named("hello2")
            public class HelloServiceProviderNamedAndPropertiesHello2 implements Provider<HelloService>, HelloService {

                public String getMessage() {
                    return "Hello2 says hi!";
                }
            }

Is there a way to get what I want?

Thanks!


- Steinar

Here are my current c-offsets-alist settings:
((inexpr-class . +)
 (inexpr-statement . +)
 (lambda-intro-cont . +)
 (inlambda . c-lineup-inexpr-block)
 (template-args-cont c-lineup-template-args +)
 (incomposition . +)
 (inmodule . +)
 (innamespace . +)
 (inextern-lang . +)
 (composition-close . 0)
 (module-close . 0)
 (namespace-close . 0)
 (extern-lang-close . 0)
 (composition-open . 0)
 (module-open . 0)
 (namespace-open . 0)
 (extern-lang-open . 0)
 (objc-method-call-cont c-lineup-ObjC-method-call-colons c-lineup-ObjC-method-call +)
 (objc-method-args-cont . c-lineup-ObjC-method-args)
 (objc-method-intro .
                    [0])
 (friend . 0)
 (cpp-define-intro c-lineup-cpp-define +)
 (cpp-macro-cont . +)
 (cpp-macro .
            [0])
 (inclass . +)
 (stream-op . c-lineup-streamop)
 (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist)
 (arglist-cont c-lineup-gcc-asm-reg 0)
 (comment-intro c-lineup-knr-region-comment c-lineup-comment)
 (catch-clause . 0)
 (else-clause . 0)
 (do-while-closure . 0)
 (case-label . *)
 (substatement . +)
 (statement-case-intro . *)
 (statement . 0)
 (brace-entry-open . 0)
 (brace-list-entry . 0)
 (brace-list-intro . +)
 (brace-list-close . 0)
 (brace-list-open . 0)
 (block-close . 0)
 (block-open . 0)
 (inher-intro . +)
 (member-init-cont . c-lineup-multi-inher)
 (member-init-intro . +)
 (annotation-var-cont . +)
 (annotation-top-cont . 0)
 (topmost-intro . 0)
 (knr-argdecl . 0)
 (inline-close . 0)
 (class-close . 0)
 (class-open . 0)
 (defun-block-intro . +)
 (defun-close . 0)
 (defun-open . 0)
 (c . c-lineup-C-comments)
 (string . c-lineup-dont-change)
 (func-decl-cont . c-lineup-java-throws)
 (inher-cont . c-lineup-java-inher)
 (access-label . 0)
 (arglist-close . c-lineup-arglist)
 (arglist-intro . +)
 (statement-cont . +)
 (statement-case-open . +)
 (label . +)
 (substatement-label . +)
 (substatement-open . 0)
 (knr-argdecl-intro . 5)
 (statement-block-intro . +)
 (topmost-intro-cont . +)
 (inline-open . 0))



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-02 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-02 18:25 Problem indenting nested Java annotations Steinar Bang

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.