I have a US keyboard, and mostly type in English. However I also want to use it occasionally for typing Portuguese; I don't want to use the GUI character map.

How can I set up the keyboard and what packages should I install so that key combinations like รก = RightAlt + a will work?

I believe there is also a way to use tilde, apostrophe, and the quote key followed by a letter to achieve it, but of course it does not work by default, otherwise typing apostrophe would be difficult. However there must be a way to temporarily change something to use the keys that way.

I will mainly type in emacs, so if there is an emacs specific solution, that will also work.

link|improve this question
I tried lxkeymap from the main menu, and set US International (with dead keys), and it gives me some accents (e.g., typing tilde once followed by a gives me ã, typing tilde twice gives me tilde, etc). But there are some problems. In /usr/share/X11/xkb/symbols/us there is a section us(international). I don't see how to type the characters listed in the third and the forth columns. I believe there is a compose-key and I have to type, e.g., compose-key + shift + AC11 to get double quote. But I don't know what the compose-key is. – anonymous Sep 9 '11 at 10:27
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.