[OS X Emacs] How to successfully pass MacOS shortcuts out of aquamacs
Sandy C
windoverwater at gmail.com
Fri Oct 16 01:48:43 EDT 2020
Thanks - that works great!
FYI - this might be what you mean, but the Aquamacs menu bar CMD-ALT-H works but the keyboard shortcut does not.
Side extra credit question - is there a FAQ/wiki/doc that describes how aquamacs interacts with MacOS keyboard 'chord' (keyboard shortcut/sequence) wise? As which has precedence? Curiosity only - no need to reply with the explanation in email.
Thanks!
-sandy
> On Oct 15, 2020, at 6:37 PM, Nathaniel Cunningham <nathaniel.cunningham at gmail.com> wrote:
>
> Sandy,
> Good find! The mysterious thing is that the Aquamacs menu in the menubar shows Cmd-Opt-H as the shortcut for Hide Others, but the application doesn't respect that designation!
>
> You can add the following to your Preferences.el (or .emacs or whatever) file to get what you're after:
> (define-key osx-key-mode-map [(\A \M h)] 'ns-do-hide-others)
>
> ... but really we should fix Aquamacs to handle Cmd-Opt-h in a way mirroring how Cmd-h is already handled, with this keymapping defined in osxkeys.el within Aquamacs.
>
> Nathaniel
>
>
>
> On Thu, Oct 15, 2020 at 2:27 AM Sandy C <windoverwater at gmail.com> wrote:
> Hi,
>
> When in aquamacs (when aquamacs as focus), pressing CMD-H will successfully hide aquamacs. CMD-H is the default MacOS keyboard shortcut to hide the current application. However, pressing CMD-ALT-H results in a "CMD-ALT-H is undefined" in the emacs message window. CMD-ALT-H is the default MacOS keyboard shortcut to hide all other applications.
>
> Turning off option as meta and repeating results in a "CMD-'" is undefined (though the actual character printed may not be a "'").
>
> How does one tell aquamacs to successfully pass a "CMD-ALT-H" to the OS? And by extension, how to pass other specific MacOS keyboard shortcuts to the OS?
>
> Thanks much! Tried googling but not much luck.
>
> -sandy
>
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
More information about the MacOSX-Emacs
mailing list