More (US) xterm/emacs/keyboard madness
More (US) xterm/emacs/keyboard madness
- Subject: More (US) xterm/emacs/keyboard madness
- From: "Steve Linberg" <email@hidden>
- Date: Mon, 20 Jan 2003 12:59:18 -0500 (EST)
I'm still trying to work out all the messy details to making my US
keyboard behave under X11/xterm the same way it does under Terminal.app,
particularly as it applies to running emacs from a terminal, which is
where I live most of my life. After more hours than I care to describe,
I've got some voodoo that MOSTLY works, and I'm trying to dot the i's now.
The main issue was the DELETE key not working in emacs, but being mapped
to c-h. I'll spare the gory process and jump right to the magic words,
for anyone still struggling with it, and then there's one problem left for
me.
In .xinitrc, add this line:
xmodmap -e "keysym BackSpace = Delete"
That allows the xterm environment to distinguish between the "delete" key
and control-h. Then you have to map it to the DEL function within xterm,
otherwise you get "~" in xterm and forward-delete (triggering <deletechar>
instead of <DEL> in emacs). Add this to your .Xdefaults:
XTerm*VT100*deleteIsDEL: true
And it will all work like magic on the next X start. Does for me anyway.
The question I have left is: I use "control-(hyphen)" for undo in emacs.
Unfortunately, under xterm/X11, control-(hyphen) doesn't register as a key
chord, it just comes out as a plain hyphen. I've got many, many, many
years of using control-hyphen this way, and changing keys is going to be
hard for that.
Is there any way to get the xterm environment to recognize control-hyphen
as a key chord? How does this work?
Thanks for any tips.
--
Steve Linberg, Chief Goblin
Silicon Goblin Technologies
http://silicongoblin.com
Be kind. Remember, everyone you meet is fighting a hard battle.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.