homebrew-emacsmacport
homebrew-emacsmacport copied to clipboard
Meta/option/alt not working "correctly"?
Any meta keybinding combination results in the characters the Macbook Air producing on other programs, completely ignoring defaults and my personal keybindings. For example, M-b
generates a ∫
.
How can I make this work as intended, so M-b
generates backward-word
and so on?
My init: https://gist.github.com/mrbig033/95521a76dec65a4bfa462d58c7094cb7
But if you want to remap keys you can use something like https://karabiner-elements.pqrs.org/
Along with the variables as shown here: https://www.wisdomandwonder.com/article/10269/screencast-the-best-emacs-modifier-key-setup-for-os-x
@dotemacs I don't see how that could word since this is clearly an issue with this Emacs package. Regular homebrew Emacs works fine. Besides, I don't wish to change Meta behavior outside Emacs.
iTerm2 also managed to work perfectly.
I have the same problem. It's not only the option key is wrong, the command key doesn't work as usual macOS shortcuts as well. E.g., command + v is not pasting but " √ "
I can assure you that in over twenty odd years in using Emacs that I’ve yet to encounter an OS where keyboard settings work out of the box for Emacs. Maybe with NetBSD and in console only.
You always have to do some sort of keyboard adjustment/tweaking.
The tips I shared above is how you’d do it on macOS.
On 21 Apr 2020, at 5:15 am, wpix [email protected] wrote: I have the same problem. It's not only the option key is wrong, the command key doesn't work as usual macOS shortcuts as well. E.g., command + v is not pasting but " √ "
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
I can assure you that in over twenty odd years in using Emacs that I’ve yet to encounter an OS where keyboard settings work out of the box for Emacs. Maybe with NetBSD and in console only. You always have to do some sort of keyboard adjustment/tweaking. The tips I shared above is how you’d do it on macOS. …
On 21 Apr 2020, at 5:15 am, wpix @.***> wrote: I have the same problem. It's not only the option key is wrong, the command key doesn't work as usual macOS shortcuts as well. E.g., command + v is not pasting but " √ " — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Well, I never had any issues on Linux.
This spin of emacs sets Cmd to meta and seems to leave option alone to retain the various keybindings that Apple puts on option. (this also causes the issue that @wpix sees)
You can make option be meta with
(setq mac-option-modifier 'meta)
Setting mac-command-modifier
to super
doesn't fix the issue of not having standard macOS copy/paste/etc but there should also be a way to solve that.
(setq mac-option-modifier 'meta)
Thanks @cnasc . This works for me. the official build or emacs-plus default option as meta. Not sure why this is different.
Thanks for a wonderful package folks. The meta
behaviour is a bit jarring.
the official build or emacs-plus default option as meta. Not sure why this is different.
I thought I was seeing things. The official package uses meta
by default. Building with custom options disables meta
somehow 🤷