Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently started using Emacs, and so far it's quite good. Since I have to type a lot of international characters, I got used to Mac's way[*] of entering them (for example, press "a" and wait until the popup with international chars with base "a" shows up). However, I can't get that to work in Emacs, as I only get repeated characters.

I know I can use C-x 8 for ucs input, but I would like to use the native method. Is that possible?

[*] at least since Mavericks

share|improve this question
For another way of solving the problem (but not the want you want), have you looked at setting something like capslock to be a compose-key ? Then you can hit say capslock + ' + a, and get á. –  MrBones Mar 17 at 13:02

1 Answer 1

Here is an alternative method that does not use a duration of key press. I know it's not what you want, but it is a viable alternative.

(global-set-key (kbd "M-a") (lambda () (interactive) (insert "á")))
(global-set-key (kbd "M-A") (lambda () (interactive) (insert "Á")))
(global-set-key (kbd "M-e") (lambda () (interactive) (insert "é")))
(global-set-key (kbd "M-E") (lambda () (interactive) (insert "É")))
(global-set-key (kbd "M-i") (lambda () (interactive) (insert "í")))
(global-set-key (kbd "M-I") (lambda () (interactive) (insert "Í")))
(global-set-key (kbd "M-o") (lambda () (interactive) (insert "ó")))
(global-set-key (kbd "M-O") (lambda () (interactive) (insert "Ó")))
(global-set-key (kbd "M-u") (lambda () (interactive) (insert "ú")))
(global-set-key (kbd "M-U") (lambda () (interactive) (insert "Ú")))
(global-set-key (kbd "M-n") (lambda () (interactive) (insert "ñ")))
(global-set-key (kbd "M-N") (lambda () (interactive) (insert "Ñ")))
(global-set-key (kbd "M-?") (lambda () (interactive) (insert "¿")))
(global-set-key (kbd "M-!") (lambda () (interactive) (insert "¡")))
share|improve this answer
Well, it is a sort of a viable alternative -- doesn't have most of the chars I use, but the pattern is obvious. Thanks. –  Nikola Knezevic Mar 9 at 22:05
There are a lot of Google hits for key chord, that acts upon multiple presses of a key within a short span of time. That is another option you may wish to look at: stackoverflow.com/a/18905786/2112489 –  lawlist Mar 9 at 22:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.