summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/eos/jao-afio.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index 74e1d78..72461dd 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -1,6 +1,6 @@
;;; jao-afio.el --- workspaces in just one frame -*- lexical-binding: t; -*-
-;; Copyright (C) 2020, 2021, 2022, 2024, 2025 jao
+;; Copyright (C) 2020, 2021, 2022, 2024, 2025, 2026 jao
;; Author: jao <mail@jao.io>
;; Keywords: frames
@@ -83,6 +83,8 @@
(unless (jao-afio--current-config)
(jao-afio--init (window-frame (get-buffer-window (current-buffer))))))
+(defvar jao-afio-side-buffers '("*eldoc*"))
+
;;; utilities
(defun jao-afio-trisect (&optional force)
(interactive)
@@ -96,7 +98,11 @@
(switch-to-buffer (other-buffer b))
(split-window-horizontally)
(switch-to-buffer b)
- (balance-windows)))
+ (balance-windows)
+ (when-let* ((b (seq-keep #'get-buffer jao-afio-side-buffers)))
+ (other-window -1)
+ (switch-to-buffer (car b))
+ (other-window 1))))
((> fw 162)
(delete-other-windows)
(split-window-horizontally)