[OS X Emacs] How to successfully pass MacOS shortcuts out of aquamacs

Nathaniel Cunningham nathaniel.cunningham at gmail.com
Thu Oct 15 18:37:52 EDT 2020

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.


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20201015/9ca6ca76/attachment.htm>

More information about the MacOSX-Emacs mailing list