From 58b549e729ede1017726c6efc0d94ae2a97a28e8 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 12 Mar 2024 00:56:47 +0000 Subject: three columns for eww workspace --- lib/eos/jao-afio.el | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/eos') 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 ;; 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,12 +106,15 @@ (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))))) -- cgit v1.2.3