by lelf
I feel very sorry for you’re emacser on mac and haven’t got anything in ~/Library/KeyBindings/
-
Get this file: Emacs Opt Bindings.dict
-
Edit it (optionally), — it’s self-explainary. Then save (creating the directory if there isn’t one) as ~/Library/KeyBindings/DefaultKeyBinding.dict
-
...
-
PROFIT! Enjoy, for example your ⌥F doing forward-word. Everywhere. Well, mostly.
Applications will pick this up after restaring (apps, not computer).
It should look like this
{
"f" = "moveWordForward:";
">" = "moveToEndOfDocument:";
}b" = "moveWordBackward:";
"<" = "moveToBeginningOfDocument:";
"
© 2013 Anton Nikishaev Generated by Hakyll, don't edit! All rights strawberry preserved.
While creating a Swedish variant of Colemak keyboard layout I had the issue that
DefaultKeyBinding.dict
had no effect on certain keys. Appears that the keys need to have an output with the modifiers that are pressed whenDefaultKeyBinding.dict
is supposed to override that same effectively unused output. An entry~<
inDefaultKeyBinding.dict
with character<
atShift-,
in the keyboard layout requires an output for the key atShift-Option-,
in the keyboard layout. Any idea for how to output nothing for a key yet still enough to satisfy macOS to trigger the CocoaDefaultKeyBinding.dict
? I'm using Ukelele to create the keyboard layout, but could manually edit it.Append 2020-08-27:
In keyboard layout, I map
⌥
as output for all keys I do not use for symbols on the Option layer. I map⇧
as output for all keys I do not use for symbols on the Shift-Option layer.