I use both GNU Emacs for OSX and Aquamacs. I like to define key bindings that utilize the Mac command key ⌘.
Unfortunately, the syntax for specifying the ⌘ key is different for each.
In Aquamacs, it looks like this:
(define-key osx-key-mode-map (kbd "A-h") 'replace-string)
In GNU Emacs for OSX, it looks like this:
(define-key key-minor-mode-map (kbd "s-h") 'replace-string)
Is there a way to specify these key bindings in a way that both GNU Emacs and Aquamacs will understand, so that I don't have to maintain and update two separate .emacs files every time I add a new key binding?