summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/km-func.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init/km-func.el b/init/km-func.el
index 7228847..e588a86 100644
--- a/init/km-func.el
+++ b/init/km-func.el
@@ -122,3 +122,11 @@ KILLARG."
(just-one-space))
(global-set-key (kbd "C-c k j") 'km/join-next-line-with-space)
+
+(defadvice recompile (around restore-windows)
+ "Prevent recompiling from spawning new windows"
+ (save-window-excursion
+ ad-do-it))
+(ad-activate 'recompile)
+
+(global-set-key (kbd "C-c g") 'recompile)