summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-02-03 19:53:56 -0500
committerKyle Meyer <kyle@kyleam.com>2014-02-03 19:53:56 -0500
commit87050ff94a6f79914b1782c979886f60efe52529 (patch)
tree9b268906f8e78c03799a1529fd800eba5b95990b
parentc78599aa923cf5830fc50691efa92678b64db691 (diff)
downloademacs.d-87050ff94a6f79914b1782c979886f60efe52529.tar.gz
Combine recompile advice and activation
-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)