Macos – How to use the alt/option key as the “meta” key in NetBeans on OS X with emacs keybindings

emacskey-bindingsmacosnetbeans

NetBeans supports emacs-style keybindings, but for some reason it uses cmd as the "meta" key instead of alt, which seems to be the standard on OS X. (Terminal.app has a checkbox for "use option as meta key", for example.) How can I switch to using alt/option as the "meta" key for emacs-style keybindings?

Best Answer

Not too long ago I'd export, edit and import an xml file using the keymap panel in preferences.

Now I'd do some file renaming in ~/.netbeans/6.7/config/Keymaps/profile

The Netbeans Key Codes seem to be:

 In 2008     NB 6.7.1     PC       Mac   
    D           M        Meta    command 
    S           S        Shift   shift   
    O           C        Ctrl    control 
    A           A        Alt     option