How do you type without right alt key? reddit / emacs ---------------------------------------------------------------------- peliblando · 2022-07-30 16:19 Hi! I just started learning Emacs and I'm not from the US, and I thus my keyboard, instead of a right alt key, has an alt-gr one which I rely on to type. Those of you in a situation similar to mine, how do you press shortcuts like M-v or M-x (this one is particularly painful)? Edit: I can't remap caps lock to esc because I don't have that key. ---------------------------------------------------------------------- Horrih · 2022-07-30 16:24 I add a new more convenient key binding. Since outside of emacs i rarely use the Alt key, i don't want to modify my layout solely for emacs A package like [keychord](https://github.com/emacsorphanage/key-chord) really helps adding new key bindings without altering the defaults If you want to push the ergonomics a step further b, you can try modal edition to reduce drastically your use of Ctrl and Alt, see evil or xah flykeys for example ---------------------------------------------------------------------- bocxorocx · 2022-07-30 16:46 Or if you don't want to commit to `vi` bindings immediately, there is [`god-mode`](https://github.com/emacsorphanage/god-mode) to set you up between editing mode and typing mode by not having to press control or alt/meta. ---------------------------------------------------------------------- BetterEventually · 2022-07-30 16:46 Oldskool approach would be to use ESC v / ESC x which I believe still works on standard Gnu Emacs ---------------------------------------------------------------------- jsled · 2022-07-30 17:06 I never use R-Alt for M … only ever L-Alt. (R-Alt is my Compose key.) ---------------------------------------------------------------------- [deleted] · 2022-07-30 17:37 [removed] ---------------------------------------------------------------------- astoff1 · 2022-07-30 18:42 Which finger do you use to press the keys next to the spacebar? Using the thumb, I find M-x okay to type. Similarly concerning, say, AltGr-m for µ. ---------------------------------------------------------------------- tangonov · 2022-07-30 20:58 Are you able to swap a shift, or control key? Also "ESC" key counts as meta, wherever ESC is bound. "C-{" counts as escape, so it can be used as a Meta. ---------------------------------------------------------------------- peliblando · 2022-07-30 21:24 So which finger do you use to press alt? Isn't it uncomfortable? ---------------------------------------------------------------------- einSelbst · 2022-07-30 21:26 It's not the answer you are looking for but another solution. Consider an ergonomic keyboard. I started with the microsofts and later started using a kinesis, which I have since 10 years now. It was my best investment in hardware. On a kinesis you have a different layout anyway so you will make a layout which fits your needs. Yes, it's incompatible to other keyboards and yes, it's worth it. ---------------------------------------------------------------------- peliblando · 2022-07-30 21:27 Sure, but it just isn't the same. I'd rather use Vim, then, if I have to rely so heavily on the esc key. ---------------------------------------------------------------------- peliblando · 2022-07-30 21:37 Maybe the only solution is to go Evil mode. I hadn't heard of Xah, though. It looks promising, at least interesting. ---------------------------------------------------------------------- peliblando · 2022-07-30 21:47 The thing is I don't know which one to use. In the Spanish layout, I need alt gr for keys far away from the space bar. ---------------------------------------------------------------------- peliblando · 2022-07-30 21:57 Getting rid of one of them would just create another problem. I know esc counts as meta, but it's as hard to use or more, and C-{ is kind of worse. Thanks, though. ---------------------------------------------------------------------- peliblando · 2022-07-30 21:57 Interesting... ---------------------------------------------------------------------- xtifr · 2022-07-30 22:09 I have caps-lock mapped to compose/multi-key (the default for alt-gr), so I could (if I had one) remap alt-gr to alt. In fact, I'm 99% sure this is the solution I'd use if I had your keyboard, since I absolutely depend on having two alt (and two ctrl) keys. ---------------------------------------------------------------------- peliblando · 2022-07-30 22:25 The problem is that I don't have caps lock and I need alt gr to type the at symbol, the pipe symbol, the numeral symbol, the curvy tilde and the curvy brackets. I need to write in Spanish, Catalan and French, so maybe I could switch to a US layout and type the special symbols that these languages require using a compose key which I don't know where to map from, so I'm fucked, basically. ---------------------------------------------------------------------- peliblando · 2022-07-30 22:26 Yeah, but for a laptop... :/ ---------------------------------------------------------------------- Acebulf · 2022-07-31 02:08 Thumb ---------------------------------------------------------------------- 7890yuiop · 2022-07-31 07:28 > like M-v or M-x (this one is particularly painful)? If you can't give up Alt-Gr then I think you can only consider compromises. 1. Do `Alt-Gr v` and `Alt-Gr x` do anything (or anything you need)? If not, map them to `M-v` and `M-x`. Ditto for any other unused `Alt- Gr` sequences that are common Meta sequences in Emacs. Refer to `C-h i g (elisp)Translation Keymaps` 2. Is there *anything* on your keyboard that you don't need that you could turn into a right-hand Meta key? If your keyboard is programmable, some people do things like "holding down Enter while typing another key acts like a modifier key" (while pressing and releasing Enter on its own does the usual newline). Perhaps you have a right-hand `