Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-28-2006, 12:53 AM   #1
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Question Console keyboard mapping not right for Emacs (Alt/Meta problem)

Hey guys,

I've tried every combination of stuff in /etc/inputrc that I can think of and I can't get this to work.

The issue is that I want to use my Alt key (specifically, the left Alt) as Meta for Emacs. Amazingly, this works *exactly* as it should in X.

By removing all of the key customizations (which I didn't need anyway) from inputrc, in console mode Alt *mostly* works now. All of the normal navigation functions work- except for M-< and M-> (beginning of file, end of file), and the repeat doesn't work in some cases for Meta functions. Like, if I do C-U 100 M-V it should go back 100 pages, but instead it echos C-U 1 0 0 ESC on the status line.

I have a similar problem on OpenBSD in case anyone knows how to fix it in either place

Old 03-29-2006, 09:00 PM   #2
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
Possibly this might help you:

Configuring the Right Alt Key The Same As The Left Alt Key
Old 03-30-2006, 06:21 AM   #3
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
Thanks a lot, man. That's a very good link. In case anyone else has the same problem, I'll say what I did because I didn't do what that site suggested (not because it was wrong, but because the link is for a different problem) but it did have enough info for me to find what I was looking for.

In /usr/share/kdb/keymaps/i386/qwerty there are a bunch of keymaps. Actually, there are tons of keymaps in many directories in that path but qwerty was the most likely suspect. Of those in that directory, I chose as a likely suspect.

The link that Woodsman posted has a sample rc.keymap script and Pat-The-Man already thought ahead and has code in RC.M to check if you have an rc.keymap script in rc.d and if it's executable (+x) he invokes it during init. So all you have to do is copy that script (or do something similar, which is what I did, since that script doesn't fit into my program.) The essential piece is

/usr/bin/loadkeys # you can also do this as root without rebooting

In Slackware 10.2, /usr/bin/loadkeys is really a symlink to /bin/loadkeys, so you can do whatever makes sense for you here.

Thanks to the Woodsman for the heads-up and thanks to Pat for making Slackware the most sensible, easy to live with distro there is.

P.S. In case anyone cares, some knowledgeable guys told me how to fix it in OpenBSD also. Totally different fix, but I can post a link if anyone needs it.

Last edited by Randux; 03-30-2006 at 06:25 AM.


emacs, keyboard, map

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the Meta key from Esc to Alt primo *BSD 0 08-27-2005 05:18 PM
Emacs Trouble, Meta key not working Slackware 6 07-18-2005 04:53 AM
Emacs 8-bit input as meta key cilantro Linux - Software 5 12-11-2003 11:21 PM
Keyboard mapping problem lansman Linux - Newbie 1 03-15-2003 11:45 AM
Keyboard mapping problem lansman Linux - Hardware 1 03-15-2003 11:24 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration