Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to be able to name a window in emacs, and specify that window when opening and creating new buffers. I've looked through the manual but all I can find is find-file-other-window, which doesn't allow me to specify which window to open the buffer in. Perhaps I'm trying to use emacs in a way it wasn't intended to be used, but what I am trying to achieve is a workspace similar to an IDE:

| Project  |  Main editor        | Help Docs |
| Files    |                     |           |
|          |                     |           |
|          |                     |           |
|          |                     |           |
|          |                     |           |
|          |                     |           |
|          |                     |           |
|          |---------------------|           |
|          |  Console/Shell      |           |
|          |                     |           |

For example, I would like to have all internal help and python docs open in the right window, and all .py files in the main window by default. Any ideas?

EDIT: I should mention that I'm using emacs in no-window console mode.

share|improve this question

After extensive googling and head-scratching, I have discovered that what I was looking for is a function called set-window-dedicated-p. Documentation can be found here, for anyone else who happens upon this page:


Binding a key to this function will cause the selected window to refuse splitting or displaying other buffers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.