Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
In Emacs, a window is one part of a frame, displaying one buffer. For questions about operating system windows, see the tag 'frame.
2
votes
Define a main window and then close all others
Here's the code from a post of mine
(require 'ace-window)
(defun ace-maximize-window ()
"Ace maximize window." … Window"))
(global-set-key (kbd "C-M-o") 'ace-maximize-window)
This lets you maximize a window that you select with
ace-window. …
2
votes
1
answer
124
views
Could ediff-buffers re-use the current window configuration?
For instance, say that I have a two-window vertical split. … If I call
ediff-buffers from the right window, it will swap the right and the
left window for the diff, and even leave it like that afterwards. …
1
vote
Accepted
Could ediff-buffers re-use the current window configuration?
In case it is, return the left window." … (let ((windows (window-list)))
(when (= (length windows) 2)
(let ((wnd1 (car windows))
(wnd2 (cadr windows)))
(when (= (window-pixel-top wnd1)
(window-pixel-top …
4
votes
3
answers
393
views
How to scroll another buffer while in minibuffer?
I'll describe what I'm doing currently to get an issue. First, I store the current buffer.
M-: eval-expression
(setq bb (current-buffer))
Then, M-:
(with-current-buffer bb
(insert "foo"))
Whi …
4
votes
Accepted
How to scroll another buffer while in minibuffer?
The problem is solved by using with-selected-window instead of with-current-buffer.
I thought that they would be equivalent in this case, but they're not. …
11
votes
0
answers
940
views
How to immediately resize the minibuffer window?
minibuffer:
(defun foobar ()
(interactive)
(minibuffer-with-setup-hook
(lambda ()
(let ((resize-mini-windows t))
(save-excursion
(insert "foo\nbar")
(fit-window-to-buffer …
4
votes
Async shell process buffer always clobbers window arrangement
Here's my configuration. It should work great if you're on Linux.
(require 'dired-aux)
(defvar dired-filelist-cmd
'(("vlc" "-L")))
(defun dired-start-process (cmd &optional file-list)
(interact …
4
votes
1
answer
290
views
How to update window-start without calling redisplay?
While debugging swiper I've encountered a situation when
the point is changed inside with-selected-window, but window-start isn't updated. … This can be annoying, because I need the up-to-date window bounds to update the overlays. …
81
votes
Accepted
How to switch between windows quickly?
)
Summary of ace-window
It's a drop-in replacement for other-window. … Unlike the latter, you never have to call ace-window two or more times to select a window: you select a window you want in one call (possibly across multiple frames). …
25
votes
Switching between window layouts
Here's my setup:
(winner-mode)
(global-set-key [f7] 'winner-undo)
(global-set-key [C-f7] 'winner-redo)
(global-set-key [f9] 'delete-other-windows)
(global-set-key [C-f9] 'delete-window)
I don't know …