diff options
| author | jao <jao@gnu.org> | 2026-01-21 13:39:57 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-01-21 13:39:57 +0000 |
| commit | 4e71898553e91f629c91fc13a123f85eb1475bae (patch) | |
| tree | 061a54223db2910d51be4b3c075c5247760d879d /lib/eos | |
| parent | bfdb1665ca86d1b7ff52a0f839ea6ee6a5f3d59f (diff) | |
| download | elibs-4e71898553e91f629c91fc13a123f85eb1475bae.tar.gz elibs-4e71898553e91f629c91fc13a123f85eb1475bae.tar.bz2 | |
afio: side buffers
Diffstat (limited to 'lib/eos')
| -rw-r--r-- | lib/eos/jao-afio.el | 10 |
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) |
