Fix keybindings

This commit is contained in:
Henrik Lissner 2015-05-03 01:47:50 -04:00
parent ea0df90e57
commit 93c3d80e0c
2 changed files with 25 additions and 6 deletions

View file

@ -7,6 +7,17 @@
;; Don't open files from the workspace in a new frame
(setq ns-pop-up-frames nil)
;; Prefixes: Command = M, Alt = A
(setq mac-command-modifier 'meta)
(setq mac-option-modifier 'alt)
;; Restore text nav keys
(bind (kbd "<A-left>") 'backward-word
(kbd "<A-right>") 'forward-word
(kbd "M-a") 'mark-whole-buffer
(kbd "M-v") 'evil-paste-after
(kbd "M-s") 'save-buffer)
;; fix emacs PATH on OSX (GUI only)
(use-package exec-path-from-shell
:if (memq window-system '(mac ns))