Permalink
Browse files

Automatically save the current buffer before compiling.

  • Loading branch information...
1 parent 5be9fb4 commit a31380ee2e8e9864929a03db3baabbbaef29f53a @skeeto committed Nov 4, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 java-mode-plus.el
View
1 java-mode-plus.el
@@ -262,6 +262,7 @@ considered the package root."
(interactive "p")
(let* ((buffer-name (format "*compilation-%d*" n))
(compilation-buffer-name-function (lambda (x) buffer-name)))
+ (save-buffer)
(compile (concat "ant -emacs "
(if (symbolp target) (symbol-name target) target)
" -find") t))))))

0 comments on commit a31380e

Please sign in to comment.