home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 11
/
BUGCD1998_02.ISO
/
email
/
sime
/
simdemo.z
/
keybind.def
< prev
next >
Wrap
Text File
|
1997-12-09
|
4KB
|
173 lines
# this is a startup file
# with comment lines
# Keymap Definition Format
#
# keymap <name> <default-bound-function>
# key-print-rep bound-function-name
# key-print-rep bound-function-name
# key-print-rep bound-function-name
# end_keymap
# The editor currently pushes these default maps in the following order.
# - fundamental goes on first, so it can catch keys the other maps miss.
# - esc map next
# - ctl-x map next
# - default-prefix map on top
# This strategy dispatches prefix keys first.
# Applications that want to push other special keymaps and prefix maps
# should comment out all keys in the default-prefix-map, and then
# push their own prefix map on top of the stack.
# **** Warning ****
# All maps except the first one on the stack (fundamental) must use
# 'rescan' as the default-bound-function! Otherwise the key decoder
# will not traverse the key stack.
# **** Warning ****
keymap fundamental self-insert
# prefixes that point to other maps
esc prefix esc-map
^x prefix ctl-x-map
^a point-goto-bol
^b point-goto-char-rev
^d char-kill-fwd
^e point-goto-eol
^f point-goto-char-fwd
^h char-kill-rev
^m line-newline
^k line-kill-eol
^n point-goto-line-fwd
^o line-openline
^p point-goto-line-rev
^r point-goto-id-rev
^t point-goto-id-fwd
^q point-goto-word-rev
^w point-goto-word-fwd
^y point-goto-nonwhite-rev
^u point-goto-nonwhite-fwd
up point-goto-line-rev
down point-goto-line-fwd
left point-goto-char-rev
right point-goto-char-fwd
ctl_left point-goto-word-rev
ctl_right point-goto-word-fwd
pgup point-goto-page-rev
pgdn point-goto-page-fwd
backspace char-kill-rev
home point-goto-bol
end point-goto-eol
ctl_home point-goto-bob
ctl_end point-goto-eob
del char-kill-fwd
ins point-goto-nowhere
backtab point-goto-word-rev
end_keymap
keymap esc-map rescan
# these selection extenion commands lock on the buffer highlight while
# the point is moved by various means. The first buffer modification
# key releases the tmp extend lock. The permanent lock can only be
# removed by the lock-off command.
. selection-extend-tmp
( selection-extend-lock-on
) selection-extend-lock-off
< point-goto-bob-no-x
> point-goto-eob-no-x
# these are the normal emacs bindings
b point-goto-word-rev
d word-kill-fwd
f point-goto-word-fwd
h word-kill-rev
v point-goto-page-rev
end_keymap
keymap ctl-x-map rescan
f point-goto-char-fwd
^f file-find
^g cmd-abort
^i file-insert
^o line-close
^q buffer-rw-toggle
4 prefix ctl-x-4-map
b buffer-goto
z no-prefix-top-map
end_keymap
keymap ctl-x-4-map rescan
a "ctl-x-4-a"
b "ctl-x-4-b"
end_keymap
##################################################################
# These are test keymaps and examples
##################################################################
keymap stack-1 rescan
^x prefix stack-1-cx-prefix
z stack-1-z
end_keymap
keymap stack-1-cx-prefix rescan
a stack-1-cx-a
b stack-1-cx-b
end_keymap
keymap stack-2 rescan
^x prefix stack-2-cx-prefix
end_keymap
keymap stack-2-cx-prefix rescan
4 prefix stack-2-cx4-prefix
end_keymap
keymap stack-2-cx4-prefix rescan
c stack-2-cx4-c
d stack-2-cx4-d
end_keymap
keymap stack-3 rescan
^x prefix stack-3-cx-prefix
end_keymap
keymap stack-3-cx-prefix rescan
4 stack-3-cx-4
end_keymap
keymap stack-4 rescan
^x prefix stack-4-cx-prefix
end_keymap
keymap stack-4-cx-prefix rescan
4 prefix stack-4-cx4-prefix
end_keymap
keymap stack-4-cx4-prefix rescan
a stack-4-cx4-a
b stack-4-cx4-b
end_keymap
keymap map-top-1 rescan
^[ prefix ctl-x-map
^x prefix esc-map
z no-prefix-top-map
end_keymap
keymap map-top-2 rescan
i "i-function"
h "h-function"
end_keymap