Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Change the default to "compile" and add "jar" binding.

In my own projects I make the default target "jar", which produces the
distributable .jar file. I feel this makes the most sense with my own
projects. However, when I'm coding I don't want to wait on the .jar
file to be built, usually the slowest part, just to check my work.
  • Loading branch information...
commit e6de2090bfac4873326a481d3e9654fd3f0bd57d 1 parent e21b172
@skeeto authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 java-mode-plus.el
6 java-mode-plus.el
@@ -261,7 +261,8 @@ considered the package root."
,@(loop for (key fn) on keys/fns by 'cddr
collecting `(ant-bind (kbd ,key) ,fn))))
-(ant-bind* "C-c C-j c" "" ; default Ant target
+(ant-bind* "C-c C-j c" 'compile ; default Ant target
+ "C-c C-j j" 'jar
"C-c C-j C" 'clean
"C-c C-j r" 'run
"C-c C-j t" 'test
@@ -272,7 +273,8 @@ considered the package root."
(defun java-mode-short-keybindings ()
"Create (old) short bindings for java-mode."
- (ant-bind* "C-x c" ""
+ (ant-bind* "C-x c" 'compile
+ "C-x j" 'jar
"C-x C" 'clean
"C-x r" 'run
"C-x t" 'test

0 comments on commit e6de209

Please sign in to comment.
Something went wrong with that request. Please try again.