View Single Post
Posts: 1 | Thanked: 0 times | Joined on Oct 2009 @ Beijing
#9
#for n810

For a Vim user, Home/End/Del are somewhat useless.

;;use zoom keys for PageScroll
map <F7> <C-f>
map <F8> <C-b>

I have not figured out how to use fixed-width font in emacs22...

my config
itt has an older thread on key mapping, search it (my search does not work as for now
1, use xev to find the keycode or keyname for a specified key (apt-get install xev first
2, remap keys using xmodmap (apt-get install xmodmap first
3, use bash and add "xmodmap ~/.Xmodmap" to ~/.bashrc

I use "menu" key for Fn and use the original Fn for ctrl_L

Here is my ~/.Xmodmap below
Bugs: The dosbox can not recognize the new Fn key.
----------

! filename: .Xmodmap
! Ctrl-Backspace -> tab
keycode 22 = Backspace Backspace Tab Tab Tab
keycode 52 = z Z bar bar bar
keycode 58 = m M braceleft braceleft braceleft
keycode 47 = semicolon colon braceright braceright braceright
! chr -> alt
keycode 135 = Meta_L Meta_L Meta_L Meta_L Meta_L
add mod1 = Meta_L

! menu -> Fn
keycode 70 = ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift
! Fn -> Control_L
keycode 216 = Control_L Control_L Control_L Control_L Control_L

add Control = Control_L Control_R
remove mod5 = ISO_Level3_Shift

! for roxterm, use shift-Fullscreen to get a fullscreen term
keysym F6 = F6 F11

Last edited by freddong; 2009-10-26 at 09:43.