If my .emacs is empty or if it contains only the lines
(require 'cc-mode)
(add-to-list 'c-offsets-alist '(annotation-top-cont .0))
(add-hook 'java-mode-hook
'(lambda () (c-set-offset 'annotation-top-cont 0)))
then instead of having protected aligned with @Override
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
protected comes out instead indented relative to @Override
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
What changes should I make to my .emacs so that the indentation comes out as the top sample above?