Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 9104  / 1 Year ago, sun, february 5, 2023, 1:49:57

I see that this question has been asked multiple times. The solutions given there in does not seem to apply to my setup. Here is my story:



I use ubuntu 12.0.04 LTS, with xmonad (not over gnome), and use xterm for my work. I would prefer to use xterm rather than a different terminal or emacs own window. When using emacs -nw, I see that Alt is not recognized. I verified using xev that Alt is indeed getting generated. Further, if I am using rxvt, I see that Alt is getting recognized by emacs -nw. I am using evil mode (as a long time vim user, and an emacs newbee), and I would really prefer not having my escape key rebound as alt (which was the solution given in another thread). What should I do? (If it helps, Alt-x on the xterm window without emacs running generates "ø" or if I run emacs -nw -Q).


More From » emacs

 Answers
0

As seen in the Arch Wiki, you need to make Xterm to send the correct escaped key to the program:



If you use the Alt key for keyboard shortcuts, you will need this in your resource file:


XTerm*metaSendsEscape: true


So, just do:


echo 'XTerm*metaSendsEscape: true' >> ~/.Xresources

And restart your Xterm session.


[#26225] Monday, February 6, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
initiallartebeest

Total Points: 24
Total Questions: 118
Total Answers: 105

Location: Venezuela
Member since Thu, Jul 15, 2021
3 Years ago
;