VM User's Manual. Node: Window Configuration

PREV Frame Configuration UP Frames and Windows next

15.2: Window Configuration

Window configurations allow you to specify how the windows within a frame should look for a particular command or class of commands. Each command can have a configuration associated with it and you can also associate a configuration with command classes like ``reading-message'' or ``composing-message''. To setup a window configuration, first use Emacs' window management commands (split-window, enlarge-window, etc.) to make the windows in the frame look the way you want. Then use the switch-to-buffer command to put the buffers you want to see into the windows. Next type W S, which invokes the vm-save-window-configuration command. Type the name of the command or class of commands to which you want the configuration to apply. Nearly all VM commands can be entered here. Valid classes are:


When a VM command is executed, window configurations are searched for as follows. First, a command specific configuration is searched for. If one is found, it is used. Next a class configuration is searched for. Not all commands are in command classes. Message composition commands are in the ``composing-message'' class. All the vm-quit command are in the ``quitting'' class. All the VM commands that set and clear message marks are in the ``marking-message'' class. And so on. If such a class configuration is found it is used. If no matching class configuration is found, the ``default'' class configuration is used, if it is defined.

Note that when a window configuration is saved the selected window at that time will be the selected window when that window configuration is used. So if you prefer for the cursor to be in a particular window, make sure you invoke vm-save-window-configuration window from that window. Remember that you can invoke the command with M-x if VM's normal keymap is not in effect.

To delete a window configuration, use W D which is bound to vm-delete-window-configuration. You will be prompted for the name of the configuration to delete.

To see what an existing configuration looks like, type W W which invokes vm-apply-window-configuration.

VM saves information about your window configurations in the file named by the variable vm-window-configuration-file. The default location of the configuration file is `"~/.vm.windows"'. Do not make vm-window-configuration-file point to the same location as vm-init-file, as the window configuration save commands will then overwrite the content of your init file.

PREV Frame Configuration UP Frames and Windows next