diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-02-03 19:53:56 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-02-03 19:53:56 -0500 |
commit | 87050ff94a6f79914b1782c979886f60efe52529 (patch) | |
tree | 9b268906f8e78c03799a1529fd800eba5b95990b | |
parent | c78599aa923cf5830fc50691efa92678b64db691 (diff) | |
download | emacs.d-87050ff94a6f79914b1782c979886f60efe52529.tar.gz |
Combine recompile advice and activation
-rw-r--r-- | lisp/init-external.el | 3 |
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) |