When I moved back to my own Emacs configuration from Spacemacs one thing that I missed most was to have Magit’s status window cover the whole frame.
Luckily this feature is easy to reproduce with a simple entry in
(add-to-list 'display-buffer-alist `(,(rx "*magit: ") (lunaryorn-display-buffer-fullframe) (reusable-frames . nil)))
Unfortunately there’s no built-in display function to show a window covering the whole frame but it’s easy enough to write one:
(defun lunaryorn-display-buffer-fullframe (buffer alist) "Display BUFFER in fullscreen. ALIST is a `display-buffer' ALIST. Return the new window for BUFFER." (let ((window (display-buffer-pop-up-window buffer alist))) (when window (delete-other-windows window)) window))
We simply need to get hold of any arbitrary window for the
buffer, and then just delete all other windows, leaving only the window for our
That’s it. Enjoy and share :)
原文出处: Sebastian Wiesner
原文时间: 2016-04-28 06:00
整理时间: 2016-05-12 02:03
本文由 Hick 整理，转载请保留以上信息;
The articles on this site come from Internet, thanks to all the original authors.
If anything about COPYRIGHT, or LEFT, please contact Emacsist at gmail dot com .