#Emacs A simple configuration to hide compilation buffer when compile
start, and switch to that buffer when compilation finished.
;; compilation
(add-to-list 'display-buffer-alist
'("\\*compilation\\*"
(display-buffer-no-window)))
(defun mk/switch-buffer-when-compilation-finished (compilation-buffer _msg)
(switch-to-buffer compilation-buffer))
(add-hook 'compilation-finish-functions #'mk/switch-buffer-when-compilation-finished)