-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advice on getting this working with emacs-mac-port #1
Comments
Hi! Yes, the Mac port has different modifier bindings than Cocoa Emacs.app. The Mac port has the
By contrast Cocoa Emacs.app maps ⌘ to the So, if you want the modifiers in the Mac port to match Cocoa Emacs.app, you are halfway there: you have (setq mac-option-modifier 'meta)
(setq mac-command-modifier 'super) You may also want to set (setq mac-pass-command-to-system nil) However, it seems that I should update the docs for this and several other libraries, because the docs just assume that OS X users are running Cocoa Emacs. But ⌘-v is different on the different ports. |
Yay, that did it. I was missing the Thanks! |
It turns out that that wasn't my problem. I didn't need to switch the option and command keys. The problem was that I had lost the use of the "M-x" key, which is the only meta key that I need since I use vimpulse mode. So to get the M-X key back, I just did:
These are my settings, if this helps someone else:
Note that this doesn't entirely solve the problem of which key is the meta key for Emacs (this only fixes the M-x key). |
Ok, now I'm trying to solve a similar problem with regular Emacs 24.3 for Mac OS X . I also lost the use of the M-x key. In fact it looks like the option and cmd keys do the exact thing. I guess they're both mapped to super? so how do i set my option key to be meta? I tried |
Right. The (setq ns-alternate-modifier 'meta) Thanks very much for the snippet above regarding vimpulse. I'd like to make simpleclip "just work" under vimpulse/evil/viper, but have not done anything about it since I don't use those modes. |
Oh, good to know. In my attempts to harmonize regular Emacs for Mac OS X and emacs-mac-port (which uses the option key for Mac alternate characters), I ended up reshuffling things. I mapped the option key to Hyper and then got my M-x keybinding back that way:
I wish I could make sense of it all :) |
I'm trying to use https://github.com/railwaycat/emacs-mac-port/ on OS X, but for some reason the keybindings don't work. I've filed an issue here https://github.com/railwaycat/emacs-mac-port/issues/57 but maybe you have some insight as to what keybindings may be overriding simpleclip's.
The text was updated successfully, but these errors were encountered: