Move macos super key fixes to meta
And add Option motion keybinds.
This commit is contained in:
parent
24b4d24d18
commit
a32c5f7869
1 changed files with 23 additions and 18 deletions
|
@ -132,28 +132,33 @@
|
||||||
;; Fix MacOS shift+tab
|
;; Fix MacOS shift+tab
|
||||||
(define-key input-decode-map [S-iso-lefttab] [backtab])
|
(define-key input-decode-map [S-iso-lefttab] [backtab])
|
||||||
;; Fix conventional OS keys in Emacs
|
;; Fix conventional OS keys in Emacs
|
||||||
(map! "s-`" #'other-frame ; fix frame-switching
|
(map! "M-`" #'other-frame ; fix frame-switching
|
||||||
;; fix OS window/frame navigation/manipulation keys
|
;; fix OS window/frame navigation/manipulation keys
|
||||||
"s-w" #'delete-window
|
"M-w" #'delete-window
|
||||||
"s-W" #'delete-frame
|
"M-W" #'delete-frame
|
||||||
"s-n" #'+default/new-buffer
|
"M-n" #'+default/new-buffer
|
||||||
"s-N" #'make-frame
|
"M-N" #'make-frame
|
||||||
"s-q" (if (daemonp) #'delete-frame #'evil-quit-all)
|
"M-q" (if (daemonp) #'delete-frame #'evil-quit-all)
|
||||||
;; Restore OS undo, save, copy, & paste keys (without cua-mode, because
|
;; Restore OS undo, save, copy, & paste keys (without cua-mode, because
|
||||||
;; it imposes some other functionality and overhead we don't need)
|
;; it imposes some other functionality and overhead we don't need)
|
||||||
"s-z" #'undo
|
"M-z" #'undo
|
||||||
"s-c" (if (featurep 'evil) #'evil-yank #'copy-region-as-kill)
|
"M-c" (if (featurep 'evil) #'evil-yank #'copy-region-as-kill)
|
||||||
"s-v" #'yank
|
"M-v" #'yank
|
||||||
"s-s" #'save-buffer
|
"M-s" #'save-buffer
|
||||||
;; Buffer-local font scaling
|
;; Buffer-local font scaling
|
||||||
"s-+" (λ! (text-scale-set 0))
|
"M-+" (λ! (text-scale-set 0))
|
||||||
"s-=" #'text-scale-increase
|
"M-=" #'text-scale-increase
|
||||||
"s--" #'text-scale-decrease
|
"M--" #'text-scale-decrease
|
||||||
;; Conventional text-editing keys
|
;; Conventional text-editing keys & motions
|
||||||
"s-a" #'mark-whole-buffer
|
"M-a" #'mark-whole-buffer
|
||||||
:gi [s-return] #'+default/newline-below
|
:gi [M-return] #'+default/newline-below
|
||||||
:gi [s-S-return] #'+default/newline-above
|
:gi [M-S-return] #'+default/newline-above
|
||||||
:gi [s-backspace] #'doom/backward-kill-to-bol-and-indent))
|
:gi [M-backspace] #'doom/backward-kill-to-bol-and-indent
|
||||||
|
:gi [M-left] #'doom/backward-to-bol-or-indent
|
||||||
|
:gi [M-right] #'doom/forward-to-last-non-comment-or-eol
|
||||||
|
:gi [A-backspace] #'backward-kill-word
|
||||||
|
:gi [A-left] #'backward-word
|
||||||
|
:gi [A-right] #'forward-word))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue