(when (eq system-type 'darwin) ; mac specific bindings
(setq mac-right-command-modifier 'meta ; right cmd = meta
mac-command-modifier 'control ; left cmd = control
mac-option-modifier 'super ; left option = super
mac-right-option-modifier nil ; right option = special characters
mac-control-modifier 'hyper ; left control = hyper
ns-function-modifier 'hyper ; fn key = hyper
ns-right-alternate-modifier nil)); don't know what that is so I unbound it
我自己的键盘不知道为什么左右的command modifer调转了,所以只要
(when (eq system-type 'darwin) ; mac specific bindings
(setq mac-right-command-modifier 'control ; right cmd = meta
mac-command-modifier 'meta ; left cmd = control
mac-option-modifier 'super ; left option = super
mac-right-option-modifier nil ; right option = special characters
mac-control-modifier 'hyper ; left control = hyper
ns-function-modifier 'hyper ; fn key = hyper
ns-right-alternate-modifier nil)); don't know what that is so I unbound it