mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user