Emacs: Swap Command Key behavior on Mac

This commit is contained in:
2025-10-05 12:59:31 -07:00
parent d723fdc625
commit 8a4cb11fe2

View File

@@ -107,8 +107,11 @@
("C-o 1" . delete-other-windows)
("C-o t" . tab-bar-new-tab)
("C-o ]" . tab-bar-switch-to-next-tab)
("M-)" . tab-bar-switch-to-next-tab)
("M-(" . tab-bar-switch-to-prev-tab)
("C-o [" . tab-bar-switch-to-prev-tab)
("C-o T" . tab-bar-close-tab)
("C-o T" . tab-bar-undo-close-tab)
("C-o w" . tab-bar-close-tab)
;; TODO C-/ for undo window state change
("C-o z" . my/zoom-window)
;; TODO other-window scrolling
@@ -132,7 +135,11 @@
;; Use right-option as regular option on Mac
(setq ns-alternate-modifier 'meta)
(setq ns-right-alternate-modifier 'none)
(setq ns-right-command-modifier 'meta)
(setq ns-command-modifier 'meta)
(setq ns-right-command-modifier 'super)
;; Training wheels for Cmd-S
(global-set-key (kbd "M-s M-s") 'save-buffer)
;;; Editing
;;;; MWIM