2011-12-27 11 views

答えて

4

私はfollowing snippet taken from Emacs wikiを使用します。

(defun toggle-window-split() 
    (interactive) 
    (if (= (count-windows) 2) 
     (let* ((this-win-buffer (window-buffer)) 
     (next-win-buffer (window-buffer (next-window))) 
     (this-win-edges (window-edges (selected-window))) 
     (next-win-edges (window-edges (next-window))) 
     (this-win-2nd (not (and (<= (car this-win-edges) 
        (car next-win-edges)) 
        (<= (cadr this-win-edges) 
        (cadr next-win-edges))))) 
     (splitter 
      (if (= (car this-win-edges) 
      (car (window-edges (next-window)))) 
      'split-window-horizontally 
     'split-window-vertically))) 
    (delete-other-windows) 
    (let ((first-win (selected-window))) 
     (funcall splitter) 
     (if this-win-2nd (other-window 1)) 
     (set-window-buffer (selected-window) this-win-buffer) 
     (set-window-buffer (next-window) next-win-buffer) 
     (select-window first-win) 
     (if this-win-2nd (other-window 1)))))) 

(define-key ctl-x-4-map "t" 'toggle-window-split) 

だけ​​にこれを入れてCtrlキー使用 - Xトンを。

3

フレーム内のタイリングウィンドウについて質問しました。他の人はそれについて直接お答えします(C-x 3)。しかし、別のフレームとtile the framesをディスプレイの向こう側または下に使用できることを知りたいかもしれません。

6

Transpose Frameライブラリーは、フレーム(あなたの特定の例のために十分であろうtranspose-framerotate-frame-clockwise、またはrotate-frame-anti-clockwiseのいずれか)でWindowsを操作するための機能の優れたセットを提供します。

他の選択肢がありますが、私はこのライブラリをかなり包括的であると感じています。各機能のアスキーアイ図については、Wikiページ(またはコード内の解説)を参照してください。

関連する問題