Skip to content

Instantly share code, notes, and snippets.

@k1LoW
Created July 13, 2009 08:26
Show Gist options
  • Save k1LoW/145998 to your computer and use it in GitHub Desktop.
Save k1LoW/145998 to your computer and use it in GitHub Desktop.
(require 'split-root)
(defvar anything-compilation-window-height-percent 50.0)
(defun anything-compilation-window-root (buf)
(setq anything-compilation-window
(split-root-window (truncate (* (window-height)
(/ anything-compilation-window-height-percent
100.0)))))
(set-window-buffer anything-compilation-window buf))
(setq anything-display-function 'anything-compilation-window-root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment