diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/eos/jao-afio.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el index 6a4b9c5..32d43b2 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 jao +;; Copyright (C) 2020, 2021, 2022, 2024 jao ;; Author: jao <mail@jao.io> ;; Keywords: frames @@ -51,7 +51,8 @@ ;;; utilities (defun jao-afio-trisect (&optional force) (interactive) - (let ((fw (frame-width))) + (let ((fw (frame-width)) + (display-buffer-alist nil)) (cond ((or force (>= fw 240)) (let ((b (current-buffer))) (delete-other-windows) @@ -105,14 +106,17 @@ (require 'jao-eww-session) (if (< (frame-width) 160) (if jao-afio-use-w3m (w3m) (jao-afio--open-eww-session)) - (delete-other-windows) - (split-window-right) (if jao-afio-use-w3m - (w3m) + (progn (delete-other-windows) + (split-window-right) + (w3m)) + (jao-afio-trisect) (jao-afio--open-eww-session) (let ((b (current-buffer))) (other-window 1) (switch-to-buffer (car (jao-eww-session-eww-buffers b))) + (other-window 1) + (switch-to-buffer (car (jao-eww-session-eww-buffers b))) (other-window 1))))) ;;;###autoload |