commit 870b3108b77ede3294a4536304fb7361d2743106
parent be02a2959a4591da133d89387880aa03e597446d
Author: Alex Balgavy <alex@balgavy.eu>
Date: Thu, 8 Jul 2021 19:35:36 +0200
emacs: add magit-process to display-buffer-alist
Diffstat:
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -262,7 +262,7 @@ Maybe at some point I'll customize the modeline too.
So, this is a bit hard to grok. But basically the alist contains a
regular expression to match a buffer name, then a list of functions to
-use in order for displaying the list, and then options for those functions.
+use in order for displaying the list, and then options for those functions (each of which is an alist).
#+begin_src emacs-lisp
(setq
@@ -272,8 +272,9 @@ use in order for displaying the list, and then options for those functions.
3 ;; right
1 ) ;; bottom
- display-buffer-alist
- '(("\\*Help\\*"
+ display-buffer-alist '(
+ ;; Right side
+ ("\\*Help\\*"
(display-buffer-reuse-window display-buffer-in-side-window)
(side . right)
(slot . -1)
@@ -283,6 +284,13 @@ use in order for displaying the list, and then options for those functions.
(side . right)
(slot . 0)
(inhibit-same-window . t))
+ ("magit-process: .*"
+ (display-buffer-reuse-window display-buffer-in-side-window)
+ (side . right)
+ (slot . 0)
+ (inhibit-same-window . t))
+
+ ;; Top side
("\\*Info\\*"
(display-buffer-reuse-window display-buffer-in-side-window)
(side . top)
@@ -296,7 +304,7 @@ use in order for displaying the list, and then options for those functions.
And a way to toggle those side windows:
#+begin_src emacs-lisp
- (global-set-key (kbd "C-c w") (lambda () (interactive (window-toggle-side-windows))))
+ (global-set-key (kbd "C-c w") (lambda () (interactive) (window-toggle-side-windows)))
#+end_src
* File locations