summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-external.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/init-external.el b/lisp/init-external.el
index bd5d988..911df49 100644
--- a/lisp/init-external.el
+++ b/lisp/init-external.el
@@ -10,11 +10,10 @@
(define-key external-map "t" 'km/open-external-terminal)
(define-key external-map "s" 'shell-command)
-(defadvice recompile (around restore-windows)
+(defadvice recompile (around restore-windows activate)
"Prevent recompiling from spawning new windows."
(save-window-excursion
ad-do-it))
-(ad-activate 'recompile)
(global-set-key (kbd "C-c g") 'recompile)