summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-22 18:25:32 +0200
committerAlan Pearce2024-05-22 18:25:32 +0200
commit19e9c7b8c8166cdab90e48a72319d2e87d7a258a (patch)
treea688e6c8c1f25bdf0692be2cb97b4b535ad5e679
parentc25b570e33456318f7e0454766a046abc843b75d (diff)
downloadnixfiles-19e9c7b8c8166cdab90e48a72319d2e87d7a258a.tar.lz
nixfiles-19e9c7b8c8166cdab90e48a72319d2e87d7a258a.tar.zst
nixfiles-19e9c7b8c8166cdab90e48a72319d2e87d7a258a.zip
emacs: show compilation/shell buffers in a dedicated bottom window
-rw-r--r--user/emacs/init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index ad5f8cbd..a7906be9 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -133,7 +133,12 @@
 (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."