How can I get Emacs cc-mode functions that refer to functions to work with Java methods?
As noted in cc-mode's documentation, functions like c-indent-defun
and c-mark-function
"can't be used to reindent a nested b开发者_高级运维race construct, such as a nested class or function, or a Java method." The same goes for c-beginning-of-defun
and its ilk.
Does anyone have a solution to get these functions working with Java methods, or maybe Java-specific replacements?
I don't use Java, but Emacs has a Java Development Environment. JDEE Jalopy claims to do beautifying work. That should help you get the functions you mention.
精彩评论