all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Frame split toggle
       [not found] <20191212152920.rlhlmzippjnzlfhh.ref@Ergus>
@ 2019-12-12 15:29 ` Ergus
  2019-12-12 15:37   ` Doug Davis
                     ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Ergus @ 2019-12-12 15:29 UTC (permalink / raw
  To: Emacs mailing list

Hi:

Simple question, does emacs has any function to change the window split
from horizontal to vertical. For example?

Thanks in advance
Ergus



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2019-12-12 15:29 ` Frame split toggle Ergus
@ 2019-12-12 15:37   ` Doug Davis
  2019-12-12 19:11   ` J. David Boyd
                     ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Doug Davis @ 2019-12-12 15:37 UTC (permalink / raw
  To: help-gnu-emacs

Hi,

I don't think there is a builtin function; there's an EmacsWiki page
with some useful information here:
https://www.emacswiki.org/emacs/ToggleWindowSplit

cheers,
Doug



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2019-12-12 15:29 ` Frame split toggle Ergus
  2019-12-12 15:37   ` Doug Davis
@ 2019-12-12 19:11   ` J. David Boyd
  2019-12-13  2:00   ` Emanuel Berg via Users list for the GNU Emacs text editor
                     ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: J. David Boyd @ 2019-12-12 19:11 UTC (permalink / raw
  To: help-gnu-emacs

Ergus <spacibba@aol.com> writes:

> Hi:
>
> Simple question, does emacs has any function to change the window split
> from horizontal to vertical. For example?
>
> Thanks in advance
> Ergus

Think you have to do it the hard way, and work it out one step at a time.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2019-12-12 15:29 ` Frame split toggle Ergus
  2019-12-12 15:37   ` Doug Davis
  2019-12-12 19:11   ` J. David Boyd
@ 2019-12-13  2:00   ` Emanuel Berg via Users list for the GNU Emacs text editor
  2019-12-13  5:22     ` VanL
  2019-12-13  7:56   ` Vegard Vesterheim
  2020-04-03  2:22   ` Bruno Félix Rezende Ribeiro
  4 siblings, 1 reply; 10+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2019-12-13  2:00 UTC (permalink / raw
  To: help-gnu-emacs

Ergus wrote:

> Simple question, does emacs has any function
> to change the window split from horizontal
> to vertical.

`split-window-vertically' will split the window
vertically ... yes, it's the truth! ... if
that's what you mean?

If you want to change some default behavior
when splitting windows please tell what
function it is you use to do that.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2019-12-13  2:00   ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2019-12-13  5:22     ` VanL
  2019-12-13  6:26       ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 10+ messages in thread
From: VanL @ 2019-12-13  5:22 UTC (permalink / raw
  To: help-gnu-emacs


>> Simple question, does emacs has any function
>> to change the window split from horizontal
>> to vertical.
>
> `split-window-vertically' will split the window
> vertically ... yes, it's the truth! ... if
> that's what you mean?
>
> If you want to change some default behavior
> when splitting windows please tell what
> function it is you use to do that.

C-x 2 ; does split-window-below
C-x 3 ; does split-window-right

A use case could be for 'C-x 2' to always split in the direction of
toggle-state.  The symbols '-' and '|' make sense for toggle-state
direction as part of keychord.  That frees up 'C-x 3' for something
else, possibly as Prefix Command.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2019-12-13  5:22     ` VanL
@ 2019-12-13  6:26       ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 10+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2019-12-13  6:26 UTC (permalink / raw
  To: help-gnu-emacs

VanL wrote:

> C-x 2 ; does split-window-below
> C-x 3 ; does split-window-right

`split-window-horizontally' and
`split-window-vertically' are aliases for
-below and -right, respectively.

Two aliases that one shouldn't be in a hurry
pruning IMO...

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2019-12-12 15:29 ` Frame split toggle Ergus
                     ` (2 preceding siblings ...)
  2019-12-13  2:00   ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2019-12-13  7:56   ` Vegard Vesterheim
  2020-04-03  2:22   ` Bruno Félix Rezende Ribeiro
  4 siblings, 0 replies; 10+ messages in thread
From: Vegard Vesterheim @ 2019-12-13  7:56 UTC (permalink / raw
  To: Ergus; +Cc: Emacs mailing list

On Thu, 12 Dec 2019 16:29:20 +0100 Ergus <spacibba@aol.com> wrote:

> Hi:
>
> Simple question, does emacs has any function to change the window split
> from horizontal to vertical. For example?

https://www.emacswiki.org/emacs/ToggleWindowSplit

-- 
Vennlig hilsen/Best regards
Vegard Vesterheim
Senior Software engineer
+47 48 11 98 98
vegard.vesterheim@uninett.no



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2019-12-12 15:29 ` Frame split toggle Ergus
                     ` (3 preceding siblings ...)
  2019-12-13  7:56   ` Vegard Vesterheim
@ 2020-04-03  2:22   ` Bruno Félix Rezende Ribeiro
  2020-04-03 16:05     ` Stefan Monnier
  4 siblings, 1 reply; 10+ messages in thread
From: Bruno Félix Rezende Ribeiro @ 2020-04-03  2:22 UTC (permalink / raw
  To: Ergus; +Cc: Emacs mailing list

[-- Attachment #1: Type: text/plain, Size: 3940 bytes --]

Hi Ergus,

Ergus <spacibba@aol.com> writes:

> [...] does emacs has any function to change the window split from
> horizontal to vertical.

In MELPA there is ‘transpose-frame’; a very useful package I wish was
part of core Emacs.  Quoting from its commentary section:

#+BEGIN_SRC elisp
;; This program provides some interactive functions which allows users
;; to transpose windows arrangement in currently selected frame:
;;
;; `transpose-frame'  ...  Swap x-direction and y-direction
;;
;;        +------------+------------+      +----------------+--------+
;;        |            |     B      |      |        A       |        |
;;        |     A      +------------+      |                |        |
;;        |            |     C      |  =>  +--------+-------+   D    |
;;        +------------+------------+      |   B    |   C   |        |
;;        |            D            |      |        |       |        |
;;        +-------------------------+      +--------+-------+--------+
;;
;; `flip-frame'  ...  Flip vertically
;;
;;        +------------+------------+      +------------+------------+
;;        |            |     B      |      |            D            |
;;        |     A      +------------+      +------------+------------+
;;        |            |     C      |  =>  |            |     C      |
;;        +------------+------------+      |     A      +------------+
;;        |            D            |      |            |     B      |
;;        +-------------------------+      +------------+------------+
;;
;; `flop-frame'  ...  Flop horizontally
;;
;;        +------------+------------+      +------------+------------+
;;        |            |     B      |      |     B      |            |
;;        |     A      +------------+      +------------+     A      |
;;        |            |     C      |  =>  |     C      |            |
;;        +------------+------------+      +------------+------------+
;;        |            D            |      |            D            |
;;        +-------------------------+      +-------------------------+
;;
;; `rotate-frame'  ...  Rotate 180 degrees
;;
;;        +------------+------------+      +-------------------------+
;;        |            |     B      |      |            D            |
;;        |     A      +------------+      +------------+------------+
;;        |            |     C      |  =>  |     C      |            |
;;        +------------+------------+      +------------+     A      |
;;        |            D            |      |     B      |            |
;;        +-------------------------+      +------------+------------+
;;
;; `rotate-frame-clockwise'  ...  Rotate 90 degrees clockwise
;;
;;        +------------+------------+      +-------+-----------------+
;;        |            |     B      |      |       |        A        |
;;        |     A      +------------+      |       |                 |
;;        |            |     C      |  =>  |   D   +--------+--------+
;;        +------------+------------+      |       |   B    |   C    |
;;        |            D            |      |       |        |        |
;;        +-------------------------+      +-------+--------+--------+
;;
;; `rotate-frame-anticlockwise'  ...  Rotate 90 degrees anti-clockwise
;;
;;        +------------+------------+      +--------+--------+-------+
;;        |            |     B      |      |   B    |   C    |       |
;;        |     A      +------------+      |        |        |       |
;;        |            |     C      |  =>  +--------+--------+   D   |
;;        +------------+------------+      |        A        |       |
;;        |            D            |      |                 |       |
;;        +-------------------------+      +-----------------+-------+
#+END_SRC

-- 
Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
<http://oitofelix.freeshell.org/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2020-04-03  2:22   ` Bruno Félix Rezende Ribeiro
@ 2020-04-03 16:05     ` Stefan Monnier
  2020-04-08 22:49       ` Bruno Félix Rezende Ribeiro
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2020-04-03 16:05 UTC (permalink / raw
  To: help-gnu-emacs

>> [...] does emacs has any function to change the window split from
>> horizontal to vertical.
> In MELPA there is ‘transpose-frame’; a very useful package I wish was
> part of core Emacs.  Quoting from its commentary section:

Could you try and see if we could get it into GNU ELPA, at least?
I.e. see if we have (or can get) the needed copyright paperwork and if
the authors are interested?


        Stefan




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Frame split toggle
  2020-04-03 16:05     ` Stefan Monnier
@ 2020-04-08 22:49       ` Bruno Félix Rezende Ribeiro
  0 siblings, 0 replies; 10+ messages in thread
From: Bruno Félix Rezende Ribeiro @ 2020-04-08 22:49 UTC (permalink / raw
  To: Stefan Monnier; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

Hi Stefan,

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Could you try and see if we could get it into GNU ELPA, at least?
> I.e. see if we have (or can get) the needed copyright paperwork and if
> the authors are interested?

Sure.  I’ll try to contact the author and then report back.


-- 
Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
<http://oitofelix.freeshell.org/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-08 22:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20191212152920.rlhlmzippjnzlfhh.ref@Ergus>
2019-12-12 15:29 ` Frame split toggle Ergus
2019-12-12 15:37   ` Doug Davis
2019-12-12 19:11   ` J. David Boyd
2019-12-13  2:00   ` Emanuel Berg via Users list for the GNU Emacs text editor
2019-12-13  5:22     ` VanL
2019-12-13  6:26       ` Emanuel Berg via Users list for the GNU Emacs text editor
2019-12-13  7:56   ` Vegard Vesterheim
2020-04-03  2:22   ` Bruno Félix Rezende Ribeiro
2020-04-03 16:05     ` Stefan Monnier
2020-04-08 22:49       ` Bruno Félix Rezende Ribeiro

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.