summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2020-03-09 16:57:41 +0100
committerfpi2020-03-09 17:03:22 +0100
commit5d8a4d73db4cb9c514f77ae345625c40f6fabcad (patch)
treed45ae02751849e509cea1f126b02449704362ff5
parentRemove mode line indicator for a bunch of modes (diff)
Add basic window rules with display-buffer-alist
-rw-r--r--emacs-init.org27
1 files changed, 27 insertions, 0 deletions
diff --git a/emacs-init.org b/emacs-init.org
index 75f5127..750ebb1 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -1421,6 +1421,33 @@ on the amount of displayed text.
(fit-window-to-buffer-horizontally t)
:bind (:map fpi-map ("s" . fit-window-to-buffer)))
#+end_src
+*** Window rules
+#+begin_src emacs-lisp
+(use-package window
+ :init
+ (setq display-buffer-alist
+ '(
+ ("\\*\\(Backtrace\\|Warnings\\|Compile-Log\\|Messages\\)\\*"
+ (display-buffer-in-side-window)
+ (window-height . 0.16)
+ (side . top)
+ (slot . 0)
+ (window-parameters . ((no-other-window t))))
+ (".*\\*Completions.*"
+ (display-buffer-in-side-window)
+ (window-height . 0.16)
+ (side . bottom)
+ (slot . 0))
+ ("\\*Help.*"
+ (display-buffer-in-side-window)
+ (window-width . 0.2)
+ (side . left)
+ (slot . 0)
+ (window-parameters . ((no-other-window . t)
+ (mode-line-format . (" "
+ mode-line-buffer-identification)))))
+ )))
+#+end_src
*** window-numbering
This is a nice package for easy window focus switching. I prefer it
over =windmove=, as it does not interfere with org keybindings.