Use Alt key as meta in emacs

Somehow the emacs that I use does not treat Alt as Meta. For this, only ESC is used. If I press Alt + x, it will tell me "AX" undefined. I tried to figure out how to map it to a meta, but didn’t get any luck on the Internet, because in most of the results of my search users, Alt chooses Meta by default. I think something like this should work:

global-set-key Alt(?) 'meta

but i'm not sure how to represent Alt in lisp .. any help? Thank!

+5
source share
2 answers

X11. . , emacs ( VNC/ ), emacs

;; Map Alt key to Meta
(setq x-alt-keysym 'meta)
+3

, , ~/.emacs, .

(set-keyboard-coding-system nil)

, http://www.emacswiki.org/emacs/MetaKeyProblems#toc15

0

All Articles