![OS X Lion 中是否有类似 Emacs 的 Meta(Option/Alt)键功能?](https://linux22.com/image/1300625/OS%20X%20Lion%20%E4%B8%AD%E6%98%AF%E5%90%A6%E6%9C%89%E7%B1%BB%E4%BC%BC%20Emacs%20%E7%9A%84%20Meta%EF%BC%88Option%2FAlt%EF%BC%89%E9%94%AE%E5%8A%9F%E8%83%BD%EF%BC%9F.png)
我想使用 Mf 和 Mb 以及所有其他方便的快捷键来实现单词前进/后退功能。这可能吗?
答案1
当然,将其放入您的~/Library/KeyBindings/DefaultKeyBinding.dict
(如果不存在则创建它),并输入以下内容:
{
"~f" = "moveWordForward:"; /* M-f Move forward word */
"~b" = "moveWordBackward:"; /* M-b Move backward word */
"~<" = "moveToBeginningOfDocument:"; /* M-< Move to beginning of document */
"~>" = "moveToEndOfDocument:"; /* M-> Move to end of document */
}