Is there any way to set some windows non visitable in emacs?
For example, in gdb show-many-windows view, I dont want to switch to local variables window or stack window every time.
Instead of trying to customize other-window
you could try using WindMove which enables frame navigation by direction.
C-x o is set to
other-window
. It is notoriously hard to customize, but here you go: It respects the window parameter'no-other-window
. Your goal will be to do(set-window-parameter gdb-window 'no-other-window t)
. Now, the only part that remains is to hook us intogud
and set those properties on the windows.A good start is
Someone will probably haggle about the name, as the window is not truly unselectable, but it will make do.