# dim-switch-window.el

DevFeed: [dim-switch-window.el](<https://devfeed.tech/articles/dim-switch-window-el-34371.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2010/07/dim-switch-window.el/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2010-07-25T11:25:00Z

Content type: article

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>)

## AI overview

The article introduces dim-switch-window.el, an Emacs utility that provides a visual C-x o window-switching interface by displaying large numbers in windows, changing window names, and waiting for a keypress or timeout. With one or two windows, it avoids displaying the large numbers and handles focus switching directly.

## Source excerpt

So it's Sunday and I'm thinking I'll get into el-get sometime later. Now is the time to present dim-switch-window.el which implements a visual C-x o. I know of only one way to present a visual effect, and that's with a screenshot: So as you can see, it's all about showing a big number in each window, tweaking each window's name, and waiting till the user press one of the expected key -- or timeout and stay on the same window as before C-x o. When there's only 1 or 2 windows displayed, though, the right thing happen and you see no huge number (in the former case, nothing happens, in the latter, focus moves to the other window).