Mercurial > dotfiles
changeset 258:863f1503616f
emacs java: adjustments from actual java hackery
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 13 Jun 2011 11:00:02 -0500 |
parents | 31f86a5707ee |
children | e742cf5a748c |
files | .elisp/settings/40.modes.el |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el +++ b/.elisp/settings/40.modes.el @@ -91,7 +91,7 @@ point." (column-number-mode) -(defun annotation-fix (unused) +(defun af-annotation-fix (unused) "fix indentation after an annotation" (save-excursion (beginning-of-line) @@ -100,10 +100,11 @@ point." 0 (+ c-basic-offset c-basic-offset)))) -(add-hook 'java-mode-hook - (lambda () - (c-set-offset 'topmost-intro-cont - annotation-fix))) +(defun af-java-mode-hook () + (c-set-offset 'topmost-intro-cont 'af-annotation-fix) + (local-set-key (kbd "RET") 'comment-indent-new-line) + (af-tab-fix)) +(add-hook 'java-mode-hook 'af-java-mode-hook) ;; mq diff-mode support (add-to-list 'auto-mode-alist '("\\.hg/patches/" . diff-mode))