Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alt key not working in Emacs SSHing X11

Tags:

emacs

ssh

x11

Hello this isn't a coding question but...
I ssh through my mac using X11, and I am using emacs. I am trying to use the "ALT" key for combination but it seems to not be working. I have tried using the "option" key, and "FN + option" both seems to not work.

like image 694
AustinT Avatar asked Jan 01 '26 20:01

AustinT


1 Answers

I had the same problem before. The hint on http://hints.macworld.com/article.php?story=20040425231058862 helps me.

To summarize, you should use xmodmap to remap alt / option in X11.

Put the following in your ~/.Xmodmap file:

clear Mod1
keycode 66 = Meta_L
add Mod1 = Meta_L
like image 193
stderr Avatar answered Jan 04 '26 22:01

stderr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!