[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Is a method like this already in emacs?
From: |
Drew Adams |
Subject: |
RE: Is a method like this already in emacs? |
Date: |
Tue, 5 Nov 2013 05:37:31 -0800 (PST) |
> now i wonder if a function that does the same is already available
> somewhere in emacs?
Yes, there is a similar command already: `mouse-tear-off-window'.
I bind it to `C-mouse-1' on the mode line:
(global-set-key [mode-line C-mouse-1] 'mouse-tear-off-window)
Click `C-mouse-1' anywhere on the mode line of the window you want
to tear off into another frame.
Doc string: "Delete the window clicked on, and create a new frame
displaying its buffer."