Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created March 11, 2012 03:44
Show Gist options
  • Save legumbre/2014911 to your computer and use it in GitHub Desktop.
Save legumbre/2014911 to your computer and use it in GitHub Desktop.
compile advice
;; Just an idea for Boscop. When (eq display-buffer-reuse-frames t)
;; display-buffer will raise the frame showing the compilation
;; buffer. This advice raises the original frame so focus is not in
;; the compilation buffer frame.
(defadvice compile (around avoid-compile-switching-frames activate)
(let ((cf (selected-frame)))
ad-do-it
(raise-frame cf)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment