From f6c7726ff4543a3fcdc4a63f5496d36c50f3c9e8 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 15 Aug 2020 15:27:48 +0200 Subject: [PATCH] Add ansi-term to display-buffer-alist --- .config/emacs/config.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 85b5ce2..5ea6c26 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -917,10 +917,14 @@ Set UTF-8 encoding as default. ** Window #+BEGIN_SRC emacs-lisp + ;; Set `switch-to-buffer' to respect the window rules + (setq switch-to-buffer-obey-display-actions t) + ;; Window rules (setq display-buffer-alist '( - ("^\\(\\*e?shell\\|vterm\\).*" + ;; ^\*(e?shell|(ansi-|v)?term).* + ("^\\*\\(e?shell\\|\\(ansi-\\|v\\)?term\\).*" (display-buffer-in-side-window) (window-height . 0.25) (side . bottom)