From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: Problem indenting nested Java annotations
Date: Tue, 02 May 2017 20:25:17 +0200 [thread overview]
Message-ID: <upzc7f1znmk2.fsf@dod.no> (raw)
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))
reply other threads:[~2017-05-02 18:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=upzc7f1znmk2.fsf@dod.no \
--to=sb@dod.no \
--cc=help-gnu-emacs@gnu.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.
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.