f127b70a44
- Copy and paste now uses emacs commands - `s-a` selects all - `s-w` closes the window not the buffer - `s-W` closes the frame Conflicts: contrib/osx/keybindings.el
30 lines
1.2 KiB
EmacsLisp
30 lines
1.2 KiB
EmacsLisp
(when (system-is-mac)
|
|
(evil-leader/set-key "bf" 'reveal-in-finder)
|
|
|
|
;; this is only applicable to GUI mode
|
|
(when (display-graphic-p)
|
|
;; Treat option as meta and command as super
|
|
(setq mac-option-key-is-meta t)
|
|
(setq mac-command-key-is-meta nil)
|
|
(setq mac-command-modifier 'super)
|
|
(setq mac-option-modifier 'meta)
|
|
|
|
;; Keybindings
|
|
(global-set-key (kbd "s-=") 'spacemacs/scale-up-font)
|
|
(global-set-key (kbd "s--") 'spacemacs/scale-down-font)
|
|
(global-set-key (kbd "s-0") 'spacemacs/reset-font-size)
|
|
(global-set-key (kbd "s-q") 'save-buffers-kill-terminal)
|
|
(global-set-key (kbd "s-v") 'evil-paste-after)
|
|
(global-set-key (kbd "s-c") 'evil-yank)
|
|
(global-set-key (kbd "s-a") 'mark-whole-buffer)
|
|
(global-set-key (kbd "s-x") 'kill-region)
|
|
(global-set-key (kbd "s-w") 'delete-window)
|
|
(global-set-key (kbd "s-W") 'delete-frame)
|
|
(global-set-key (kbd "s-n") 'new-frame)
|
|
(global-set-key (kbd "s-z") 'undo-tree-undo)
|
|
(global-set-key (kbd "s-s")
|
|
(lambda ()
|
|
(interactive)
|
|
(call-interactively (key-binding "\C-x\C-s"))))
|
|
(global-set-key (kbd "s-Z") 'undo-tree-redo)
|
|
(global-set-key (kbd "C-s-f") 'spacemacs/toggle-frame-fullscreen)))
|