Groups | Search | Server Info | Login | Register


Groups > comp.emacs > #2508

Sharing my split-window-preferred-function that splits at (pixel-wise) longer window-edge

Path csiph.com!news.swapon.de!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail
From Mekeor Melire <mekeor@posteo.de>
Newsgroups comp.emacs
Subject Sharing my split-window-preferred-function that splits at (pixel-wise) longer window-edge
Date Fri, 31 Oct 2025 17:43:13 +0100
Organization MB-NET.NET for Open-News-Network e.V.
Message-ID <871pmjqaxq.fsf@posteo.de> (permalink)
MIME-Version 1.0
Content-Type multipart/mixed; boundary="=-=-="
Injection-Info gwaiyur.mb-net.net; logging-data="3907126"; mail-complaints-to="abuse@open-news-network.org"
Cancel-Lock sha1:195fCqyB9kEyMCkg8quWunjdcd0= sha1:jHL/rmmpdBepEe+zShQ4ftjE9w8= sha256:ru9Wu8T6o0y5Tk1SXl/jsyclPeNdBOhZdUyj3Z4pf0U= sha1:/WbU7PKuaVHki+7jJX+8AM0OZYU= sha256:JXbn0EAQldjZ9lBbV5annrhxQZayNxM5KmftGiig9Ow=
Xref csiph.com comp.emacs:2508

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

I wrote a little function that can be used for
split-window-preferred-function.  It considers the height and
width of the selected window, in pixels.  As this is a
straight-forward approach that considers the pixel-ratio, I called
it “split-window-rationally”.  Feel free to try it, adopt it or
comment on it.

Back to comp.emacs | Previous | NextNext in thread | Find similar


Thread

Sharing my split-window-preferred-function that splits at (pixel-wise) longer window-edge Mekeor Melire <mekeor@posteo.de> - 2025-10-31 17:43 +0100
  Re: Sharing my split-window-preferred-function that splits at (pixel-wise) longer window-edge Aidan Hall <aidan.hall202@gmail.com> - 2025-12-17 19:16 +0000
    Re: Sharing my split-window-preferred-function that splits at (pixel-wise) longer window-edge Mekeor Melire <mekeor@posteo.de> - 2025-12-19 11:10 +0100

csiph-web