Java google-style indentation emacs file -


i need use google style indentation in java application. given code add .emacs file not working.

when run checkstyle code, gives me tab errors.

this .emacs file contains:

;; .emacs (custom-set-variables  ;; custom-set-variables added custom.  ;; if edit hand, mess up, careful.  ;; init file should contain 1 such instance.  ;; if there more one, won't work right.  '(diff-switches "-u")  '(inhibit-startup-screen t))  ;;; uncomment cjk utf-8 support non-asian users ;; (require 'un-define) (custom-set-faces  ;; custom-set-faces added custom.  ;; if edit hand, mess up, careful.  ;; init file should contain 1 such instance.  ;; if there more one, won't work right.  )  ;;; google conformant indentation java (add-hook 'java-mode-hook           (lambda ()             (progn               (setq c-basic-offset 2)               (c-set-offset 'case-label '+)               (c-set-offset 'statement-cont '++)))) 

could please tell me what's wrong, or point me file got replace with?

did re-indent java buffer? can c-x h tab.


Comments