Revert to Meta, instead of Super

Using meta is a little more flexible. Since there is no dedicated meta
key on our keyboards (anymore), it can be remapped to another modifier
by changing mac-command-modifier, x-meta-keysym, etc. without
sacrificing super or alt keybinds.
This commit is contained in:
Henrik Lissner 2018-12-31 15:00:05 -05:00
parent c82f71e7fe
commit 6d10b9bbdf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 55 additions and 53 deletions

View file

@ -20,13 +20,9 @@
(when (featurep 'exec-path-from-shell)
`(exec-path-from-shell-copy-envs ,@vars)))
;; key conventions:
;; alt/option = meta
;; windows/command = super
(cond (IS-MAC
(setq mac-command-modifier 'super
mac-option-modifier 'meta
(setq mac-command-modifier 'meta
mac-option-modifier 'alt
;; sane trackpad/mouse scroll settings
mac-redisplay-dont-reset-vscroll t
mac-mouse-wheel-smooth-scroll nil
@ -68,12 +64,7 @@
x-underline-at-descent-line t)) ; draw underline lower
(IS-WINDOWS
(setq w32-get-true-file-attributes nil ; fix file io slowdowns
;; map window keys to super (unreliable)
w32-pass-lwindow-to-system nil
w32-pass-rwindow-to-system nil
w32-lwindow-modifier 'super
w32-rwindow-modifier 'super)
(setq w32-get-true-file-attributes nil) ; fix file io slowdowns
(when (display-graphic-p)
(setenv "GIT_ASKPASS" "git-gui--askpass"))))