Difference between revisions of "Windows within a frame"

From WikEmacs
Jump to navigation Jump to search
(add page)
 
(use CommandKeys instead of Keys)
 
Line 2: Line 2:
  
 
== Basic Commands ==
 
== Basic Commands ==
; {{Keys|C-x 2}} (split-window-below)
+
; {{CommandKeys|C-x 2|split-window-below}}
 
: Split frame vertically
 
: Split frame vertically
  
; {{Keys|C-x 3}} (split-window-right)
+
; {{CommandKeys|C-x 3|split-window-right}}
 
: Split frame horizontally
 
: Split frame horizontally
  
; {{Keys|C-x o}} (other-window)
+
; {{CommandKeys|C-x o|other-window}}
 
: Switch focus to next window
 
: Switch focus to next window
  
; {{Keys|C-x 0}} (delete-window)
+
; {{CommandKeys|C-x 0|delete-window}}
 
: Close current window.
 
: Close current window.
  
; {{Keys|C-x 1}} (delete-other-windows)
+
; {{CommandKeys|C-x 1|delete-other-windows}}
 
: Close every window except the one currently in focus.
 
: Close every window except the one currently in focus.

Latest revision as of 02:54, 31 March 2014

In emacs, you can have multiple windows within a frame. You can split frames vertically or horizontally. The newly created window will contain the buffer that you were in when you split the frame and your point will remain in the original window.

Basic Commands

[C-x 2] (or M-x split-window-below)
Split frame vertically
[C-x 3] (or M-x split-window-right)
Split frame horizontally
[C-x o] (or M-x other-window)
Switch focus to next window
[C-x 0] (or M-x delete-window)
Close current window.
[C-x 1] (or M-x delete-other-windows)
Close every window except the one currently in focus.