[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 6a2ee981c3: Add new functions for splitting the root window
From: |
Juri Linkov |
Subject: |
Re: master 6a2ee981c3: Add new functions for splitting the root window |
Date: |
Tue, 20 Sep 2022 09:50:43 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
> (defun other-window-or-split ()
> (interactive)
> (when (one-window-p)
> (split-window-below) )
> (other-window 1) )
A.k.a. windmove-create-window.
> (defun swap-windows ()
> (interactive)
> (let ((buffer (current-buffer)))
> (other-window 1)
> (switch-to-buffer-other-window (current-buffer))
> (other-window 1)
> (switch-to-buffer buffer) ))
A.k.a. windmove-swap-states.
> ;; window size shorthands
>
> (defun window-increase-size (&optional lines)
> (interactive "p")
> (unless (one-window-p)
> (or lines (setq lines 1))
> (window-resize nil lines) ))
>
> (defun window-decrease-size (&optional lines)
> (interactive "p")
> (unless (one-window-p)
> (or lines (setq lines 1))
> (window-resize nil (* -1 lines) )))
It was proposed to add this on 'C-x w r left/right/up/down'
with enlarge-window, enlarge-window-horizontally,
shrink-window, shrink-window-horizontally.
- Re: master 6a2ee981c3: Add new functions for splitting the root window, (continued)
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Emanuel Berg, 2022/09/19
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Gregory Heytings, 2022/09/08
- RE: [External] : Re: master 6a2ee981c3: Add new functions for splitting the root window, Drew Adams, 2022/09/08
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Juri Linkov, 2022/09/08
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Lars Ingebrigtsen, 2022/09/09
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Stefan Monnier, 2022/09/09
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Visuwesh, 2022/09/09
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Lars Ingebrigtsen, 2022/09/09
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Richard Stallman, 2022/09/10
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Emanuel Berg, 2022/09/19
- Re: master 6a2ee981c3: Add new functions for splitting the root window,
Juri Linkov <=
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Emanuel Berg, 2022/09/20
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Juri Linkov, 2022/09/20
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Emanuel Berg, 2022/09/20
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Juri Linkov, 2022/09/21
- Re: master 6a2ee981c3: Add new functions for splitting the root window, Emanuel Berg, 2022/09/22