Compilation buffer like "pop-up" buffer

Viewed 66

I want to create a buffer that will behave like a pop-up buffer.

Wanted Features

  • It should be closed with ESC.
  • It should kill window when a buffer is killed (Could also do with a hook but if there's builtin version it would be better)

Restrictions

I use evil-mode and I don't want to use external packages.

Things I've Done:

  • It should be on the bottom of the frame.
(display-buffer (get-buffer-create "*kmonad-scratchpad*")
                '(display-buffer-at-bottom (window-height . 0.15)))
  • It should be immediately focused.
(pop-to-buffer "*kmonad-scratchpad*")

Looked at compile.el but couldn't find how it's implemented.

Differences with similar questions:

0 Answers
Related