elisp - Emacs: pop-up bottom window for temporary buffers -
i have pop-up bottom window temporary buffers compilation, completions, etc. should split-vertically whole frame if root window split horizontally. example: before m-x compile:
+------+------+ | | | | | | | | | +------+------+
after:
+------+------+ | | | +------+------+ | | +------+------+
i'm absolutely satisfied ecb-compilation-window, don't want use ecb , cedet. see 2 ways make described behavior both have drawbacks.
- use split-root.el module.
drawback: uses delete-other-windows function , rebuilds previous windows tree after root window split required. invalidates references existed earlier windows in code(or code of module).
- set window-min-height variable minimal possible value(1) , call split-window-vertically during emacs startup minimizing window height after it's created. use window temporary buffers setting height required.
drawbacks: small annoying window annoying modeline on bottom of frame, doesn't work emacs --daemon.
are there more elegant ways without drawbacks?
use popwin !
it behaves describe out of box, , configuration easy, took 1 line buffers pop-up @ bottom of screen :
(push '("\*anything*" :regexp t :height 20) popwin:special-display-config)
there more detailed config examples floating around japanese blogs, google it.
Comments
Post a Comment