Replace global meta keybinds w/ super fixes on Mac

These super keybinds are exclusively to repair conventional behavior for
CMD OS keys.
This commit is contained in:
Henrik Lissner
2019-01-21 22:09:02 -05:00
parent 139ef46956
commit 1f523dfdd6
2 changed files with 24 additions and 29 deletions

View File

@ -26,33 +26,6 @@
;;
;; Global keybindings
(define-key!
;; Buffer-local font scaling
"M-+" (λ! (text-scale-set 0))
"M-=" #'text-scale-increase
"M--" #'text-scale-decrease
;; Simple window/frame navigation/manipulation
"M-w" #'delete-window
"M-W" #'delete-frame
"M-n" #'+default/new-buffer
"M-N" #'make-frame
;; Restore OS undo, save, copy, & paste keys (without cua-mode, because
;; it imposes some other functionality and overhead we don't need)
"M-z" #'undo
"M-s" #'save-buffer
"M-c" (if (featurep 'evil) 'evil-yank 'copy-region-as-kill)
"M-v" #'yank
;; Textmate-esque bindings
"M-a" #'mark-whole-buffer
"M-b" #'+default/compile
"M-f" #'swiper
"M-q" (if (daemonp) #'delete-frame #'evil-quit-all)
;; textmate-esque newline insertion
[M-return] #'evil-open-below
[M-S-return] #'evil-open-above
;; textmate-esque deletion
[M-backspace] #'doom/backward-kill-to-bol-and-indent)
(map! (:map override
;; A little sandbox to run code in
"A-;" #'eval-expression