Android specific window placement

This commit is contained in:
BirDt_ 2025-09-27 16:38:14 +08:00
parent 79a52665b0
commit 409741397a
6 changed files with 47 additions and 42 deletions

View file

@ -37,13 +37,15 @@
(define-key global-map (kbd "C-S-x 1") #'delete-other-windows)
;; left, top, right, bottom
(setq window-sides-slots '(5 1 5 1))
(setq window-sides-slots (if (equal system-type 'android)
'(1 1 0 1)
'(5 1 5 1)))
(add-to-list 'display-buffer-alist
'("\\*Help\\*"
`("\\*Help\\*"
(display-buffer-in-side-window)
(side . right)
(slot . 4)
(side . ,(if (equal system-type 'android) 'bottom 'right))
(slot . ,(if (equal system-type 'android) 0 4))
(window-height . 0.2)))
(provide 'window-utils)