all repos — nixfiles @ 19e9c7b8c8166cdab90e48a72319d2e87d7a258a

System and user configuration, managed by nix and home-manager

emacs: show compilation/shell buffers in a dedicated bottom window
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 18:25:32 +0200
commit

19e9c7b8c8166cdab90e48a72319d2e87d7a258a

parent

c25b570e33456318f7e0454766a046abc843b75d

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -133,7 +133,12 @@ (add-to-list 'default-frame-alist '(height . 40)) (setq-default display-line-numbers 'relative
               display-line-numbers-widen t
               display-line-numbers-width 4)
-(setq frame-resize-pixelwise t)
+(setq frame-resize-pixelwise t
+      window-resize-pixelwise t
+      window-min-height 20
+      display-buffer-alist `(("\\*\\(?:shell\\|compilation\\)\\*" display-buffer-in-side-window
+                              (side . bottom) (slot . 0) (preserve-size . (nil . t))
+                              (no-other-window . t) (no-delete-other-windows . t))))
 
 (defun noct-relative ()
   "Show relative line numbers."