Previous: Adding commands, Up: Extending versor



10.3 Adding new dimensions

To add new navigation dimensions, you use versor-define-moves, giving it the name of your dimension, and a list of lists, each of which begins with a key symbol and then has a value. the currently recognised keywords are as follows:

first
The command that will get you to the first item in a series.
previous
The command that will get you to the previous item in a series.
next
The command that will get you to the next item in a series.
end-of-item
A command to move to the end of the current item.
last
The command that will get you to the last item in a series.
transpose
A command to transpose two of these items.
dwim
A function to do some kind of movement based on this kind of item, that is often useful and not easy to achieve by sequences of the other movements. For example, in a dimensional for use in a programming language mode, this might take you into a string literal.
:background
Can be used as the way to highlight the selection, by setting versor-item-attribute to :background. Value should then be the colour to use.
:foreground
Can be used as the way to highlight the selection, by setting versor-item-attribute to :foreground. Value should then be the colour to use.

Any attribute named by the variable versor-item-attribute will be used for highlighting. :background is probably the most useful of these, but you could use :foreground or anything else that GNUemacs can display.


SourceForge.net Logo