other-frame-window
- Description
- Minor mode to enable global prefix keys for other frame/window buffer placement
- Latest
- other-frame-window-1.0.6.tar (.sig), 2024-Mar-31, 20.0 KiB
- Maintainer
- Stephen Leake <stephen_leake@member.fsf.org>
- Atom feed
- other-frame-window.xml
- Website
- https://elpa.gnu.org/packages/other-frame-window.html
- Browse repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install
or list-packages
.
Full description
other-frame-window provides prefix key sequences to control where a new buffer is created by a subsequent command. With no prefix, the buffer is created where the command decides (nominally the currently selected window). Prefix C-x 7 causes the buffer to appear in another window in the same frame; a window is created if necessary. Prefix C-x 9 causes the buffer to appear in another frame; a frame is created if necessary. Some commands display new buffers in other than the currently selected window, which defeats the purpose of ‘other-frame-window’ in the absense of a prefix. To override that, customize ‘display-buffer-alist’ for those commands. For example, to override ‘gud-gdb’: (add-to-list 'display-buffer-alist (cons "\\*gud" (cons 'display-buffer-same-window nil))) ) Other key bindings provided by other-frame-window: C-x W moves the current buffer to another window in the same frame. C-x F moves the current buffer to another frame. In addition, C-x 7 and C-x 9 can be followed by these keys: 0 - deletes the current window. 1 - deletes the other windows/frames. 2 - shows another view of the current buffer in a new window/frame. a - creates a commit log entry for the current defun in another window/frame. b - switches to another buffer in another window/frame. d - start dired in another window/frame. f - find-file in another window/frame. m - compose mail in another window/frame. o - select another window/frame. r - find-file-read-only in another window/frame. To extend this list, add key bindings to ‘ofw-transient-map’. Usage: Enable the minor mode with: M-x other-frame-window-mode or, in your ~/.emacs: (other-frame-window-mode t) Design: This uses C-x 7, 9 prefix because those keys are undefined in core Emacs. It could eventually switch to 4, 5, since those are currently used for -other-window, -other-frame bindings. (info "(emacs) Pop Up Window") (info "(emacs) Creating Frames") This adds advice to switch-to-buffer; eventually Emacs could reimplement switch-to-buffer to do the same. Todo: - Pay attention to bindings added to ctl-x-4-map and ctl-x-5-map - Should `C-x 7 C-h' display the transient map? - `C-x 7 C-h k f' should show `find-file' rather than `self-insert-command'. This should probably be fixed in set-transient-map.
Old versions
other-frame-window-1.0.5.el.lz | 2018-Jul-30 | 5.39 KiB |
other-frame-window-1.0.4.el.lz | 2017-Jul-09 | 5.12 KiB |
other-frame-window-1.0.3.el.lz | 2017-May-13 | 5.02 KiB |
other-frame-window-1.0.2.el.lz | 2015-Nov-15 | 4.35 KiB |
other-frame-window-1.0.1.el.lz | 2015-Aug-17 | 4.21 KiB |
other-frame-window-1.0.0.el.lz | 2015-Aug-15 | 4.22 KiB |